Skip to content

Commit 782c07f

Browse files
committed
removed TestCase
1 parent c70d337 commit 782c07f

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

oppl2lint/src/test/java/org/coode/parsers/oppl/lint/test/CorrectOPPLLintTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import java.util.regex.PatternSyntaxException;
44

5-
import junit.framework.TestCase;
5+
66

77
import org.coode.oppl.exceptions.RuntimeExceptionHandler;
88
import org.coode.oppl.lint.OPPLLintParser;
@@ -15,7 +15,7 @@
1515
import org.semanticweb.owlapi.model.OWLOntologyManager;
1616
import org.semanticweb.owlapi.model.OWLRuntimeException;
1717
/** @author Luigi Iannone */
18-
public class CorrectOPPLLintTestCase extends TestCase {
18+
public class CorrectOPPLLintTestCase {
1919
private static final JUnitTestErrorListener ERROR_LISTENER = new JUnitTestErrorListener();
2020
private static final RuntimeExceptionHandler HANDLER = new RuntimeExceptionHandler() {
2121
public void handlePatternSyntaxExcpetion(PatternSyntaxException e) {

oppl2lint/src/test/java/org/coode/parsers/oppl/lint/test/IncorrectOPPLLintTestCase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.util.regex.PatternSyntaxException;
44

5-
import junit.framework.TestCase;
65

76
import org.coode.oppl.exceptions.RuntimeExceptionHandler;
87
import org.coode.oppl.lint.OPPLLintParser;
@@ -16,7 +15,7 @@
1615
import org.semanticweb.owlapi.model.OWLOntologyManager;
1716
import org.semanticweb.owlapi.model.OWLRuntimeException;
1817
/** @author Luigi Iannone */
19-
public class IncorrectOPPLLintTestCase extends TestCase {
18+
public class IncorrectOPPLLintTestCase {
2019
private static final ErrorListener ERROR_LISTENER = new SystemErrorEcho();
2120
private static final RuntimeExceptionHandler HANDLER = new RuntimeExceptionHandler() {
2221
public void handlePatternSyntaxExcpetion(PatternSyntaxException e) {

oppl2testcase/src/test/java/org/coode/parsers/oppl/testcase/junittest/OPPLTestCaseRunnerTest.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
import java.util.regex.PatternSyntaxException;
66

7-
import junit.framework.TestCase;
8-
97
import org.antlr.runtime.RecognitionException;
108
import org.antlr.runtime.tree.CommonTree;
119
import org.antlr.runtime.tree.RewriteEmptyStreamException;
@@ -18,6 +16,7 @@
1816
import org.coode.parsers.oppl.testcase.OPPLTestCaseParser;
1917
import org.coode.parsers.oppl.testcase.ParserFactory;
2018
import org.coode.parsers.oppl.testcase.TestCaseRunner;
19+
import org.junit.Assert;
2120
import org.junit.Ignore;
2221
import org.junit.Test;
2322
import org.semanticweb.owlapi.model.OWLClass;
@@ -36,21 +35,21 @@ public JunitConfigShouldFailTestCaseRunner(OPPLTestCase opplTestCase) {
3635

3736
@Override
3837
protected void fail(OPPLTest test) {
39-
TestCase.fail("The configuration should fail and the tests should not be carried out, but they have been instead ");
38+
Assert.fail("The configuration should fail and the tests should not be carried out, but they have been instead ");
4039
}
4140

4241
@Override
4342
protected void configurationFailed(String message) {}
4443

4544
@Override
4645
protected void fail(Throwable e) {
47-
TestCase.fail("The configuration should fail and the query should not be carried out, but it has and an exception was raised in the process "
46+
Assert.fail("The configuration should fail and the query should not be carried out, but it has and an exception was raised in the process "
4847
+ e.getMessage());
4948
}
5049

5150
@Override
5251
protected void success(OPPLTest test) {
53-
TestCase.fail("The configuration should fail and the tests should not be carried out, but they have been instead ");
52+
Assert.fail("The configuration should fail and the tests should not be carried out, but they have been instead ");
5453
}
5554
}
5655

@@ -65,7 +64,7 @@ protected void fail(OPPLTest test) {}
6564

6665
@Override
6766
protected void configurationFailed(String message) {
68-
TestCase.fail("The configuration should be fine, it fails instead with the following message: "
67+
Assert.fail("The configuration should be fine, it fails instead with the following message: "
6968
+ message);
7069
}
7170

@@ -74,7 +73,7 @@ protected void fail(Throwable e) {}
7473

7574
@Override
7675
protected void success(OPPLTest test) {
77-
TestCase.fail("Test " + test + " sould fail; it succeded instead");
76+
Assert.fail("Test " + test + " sould fail; it succeded instead");
7877
}
7978
}
8079

0 commit comments

Comments
 (0)