Skip to content

Commit

Permalink
Extend the abstract suite, so to run the test for the null pointer ex…
Browse files Browse the repository at this point in the history
…ception

Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information
egonw authored and rajarshi committed Dec 26, 2011
1 parent 106e5ec commit 269c84c
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -24,12 +24,11 @@

import org.junit.Assert;
import org.junit.Test;
import org.openscience.cdk.CDKTestCase;

/**
* @cdk.module test-core
*/
public class SystemOutLoggingToolTest extends CDKTestCase {
public class SystemOutLoggingToolTest extends AbstractLoggingToolTest {

@Test public void testLoggingTool_Class() throws Exception {
ILoggingTool logger = new SystemOutLoggingTool(this.getClass());
Expand Down Expand Up @@ -670,5 +669,10 @@ public void testInfo_Object_Object_Object_Object() throws Exception {
ILoggingTool logger = SystemOutLoggingTool.create(this.getClass());
Assert.assertNotNull(logger);
}

@Override
public ILoggingTool getLoggingTool() {
return new SystemOutLoggingTool(this.getClass());
}
}

0 comments on commit 269c84c

Please sign in to comment.