Skip to content

Commit

Permalink
Fixed code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
Anoop Nair committed Jun 17, 2019
1 parent b182240 commit 8b6b975
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@


public class DroolsTestExecutionListener extends DependencyInjectionTestExecutionListener {
private static Logger LOG = LoggerFactory.getLogger(DroolsTestExecutionListener.class);
private static final Logger LOG = LoggerFactory.getLogger(DroolsTestExecutionListener.class);
private KieContainer kieContainer;
private KieRuntimeLogger logger = null;
private KieServices kieServices;

@Override
public void beforeTestClass(TestContext testContext) throws Exception {
public void beforeTestClass(TestContext testContext) {
String[] releaseId = extractReleaseId(testContext);
this.kieServices = KieServices.Factory.get();
this.kieContainer = kieServices.newKieContainer(kieServices.newReleaseId(releaseId[0], releaseId[1], releaseId[2]));
Expand Down Expand Up @@ -75,7 +75,7 @@ public void validateKieContainer(Results results) {
}

@Override
public void afterTestClass(TestContext testContext) throws Exception {
public void afterTestClass(TestContext testContext) {
this.kieContainer = null;
this.kieServices = null;
testContext.markApplicationContextDirty(HierarchyMode.EXHAUSTIVE);
Expand All @@ -86,8 +86,8 @@ public void afterTestClass(TestContext testContext) throws Exception {
}

@Override
public void beforeTestMethod(TestContext testContext) throws Exception {
LOG.info("\n"+testContext.getTestMethod().getName());
public void beforeTestMethod(TestContext testContext) {
LOG.info("\n{}", testContext.getTestMethod().getName());
LOG.info("=================");
}

Expand Down

0 comments on commit 8b6b975

Please sign in to comment.