1 package gov.nasa.jpf.jvm; 20 21 import junit.framework.TestSuite; 22 23 import junit.textui.TestRunner; 24 25 26 29 public class TestNativePeerJPF extends TestJPF { 30 static String testClass = "gov.nasa.jpf.jvm.TestNativePeer"; 31 32 public TestNativePeerJPF (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(TestNativePeerJPF.class); 42 } 43 44 45 public void testNativeClInit () { 46 String [] args = { testClass, "testClInit" }; 47 runJPFnoException(args); 48 } 49 50 public void testNativeCreate2DimIntArray () { 51 String [] args = { testClass, "testNativeCreate2DimIntArray" }; 52 runJPFnoException(args); 53 } 54 55 public void testNativeCreateIntArray () { 56 String [] args = { testClass, "testNativeCreateIntArray" }; 57 runJPFnoException(args); 58 } 59 60 public void testNativeCreateStringArray () { 61 String [] args = { testClass, "testNativeCreateStringArray" }; 62 runJPFnoException(args); 63 } 64 65 public void testNativeException () { 66 String [] args = { testClass, "testNativeException" }; 67 runJPFnoException(args); 68 } 69 70 public void testNativeCrash () { 71 String [] args = { testClass, "testNativeCrash" }; 72 runJPFException(args, "java.lang.reflect.InvocationTargetException"); 73 } 74 75 public void testNativeInit () { 76 String [] args = { testClass, "testInit" }; 77 runJPFnoException(args); 78 } 79 80 public void testNativeInstanceMethod () { 81 String [] args = { testClass, "testNativeInstanceMethod" }; 82 runJPFnoException(args); 83 } 84 85 public void testNativeStaticMethod () { 86 String [] args = { testClass, "testNativeStaticMethod" }; 87 runJPFnoException(args); 88 } 89 } | Popular Tags |