44
55import java .util .regex .PatternSyntaxException ;
66
7- import junit .framework .TestCase ;
8-
97import org .antlr .runtime .RecognitionException ;
108import org .antlr .runtime .tree .CommonTree ;
119import org .antlr .runtime .tree .RewriteEmptyStreamException ;
1816import org .coode .parsers .oppl .testcase .OPPLTestCaseParser ;
1917import org .coode .parsers .oppl .testcase .ParserFactory ;
2018import org .coode .parsers .oppl .testcase .TestCaseRunner ;
19+ import org .junit .Assert ;
2120import org .junit .Ignore ;
2221import org .junit .Test ;
2322import 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