1 package gov.nasa.jpf.jvm; 20 21 import junit.framework.TestSuite; 22 23 import junit.textui.TestRunner; 24 25 26 29 public class TestAssertJPF extends TestJPF { 30 static String testClass = "gov.nasa.jpf.jvm.TestAssert"; 31 32 public TestAssertJPF (String name) { 33 super(name); 34 } 35 36 public static void main (String [] args) { 37 TestRunner.run(suite()); 38 } 39 40 public static TestSuite suite () { 41 return new TestSuite(TestAssertJPF.class); 42 } 43 44 45 public void testAssert () { 46 String [] args = { testClass, "testAssert" }; 47 runJPFassertionError(args); 48 } 49 50 public void testNoAssert () { 51 String [] args = { "+vm.enable_assertions=", testClass, "testAssert" }; 52 runJPFnoAssertionError(args); 53 } 54 } | Popular Tags |