1 22 package org.jboss.test.aop.regression.jbaop279native; 23 24 import org.jboss.test.aop.AOPTestWithSetup; 25 26 import junit.framework.Test; 27 import junit.framework.TestSuite; 28 import junit.textui.TestRunner; 29 30 31 36 public class NativeMethodTestCase extends AOPTestWithSetup 37 { 38 public static void main(String [] args) 39 { 40 TestRunner.run(suite()); 41 } 42 43 public static Test suite() 44 { 45 TestSuite suite = new TestSuite("NativeMethodTestCase"); 46 suite.addTestSuite(NativeMethodTestCase.class); 47 return suite; 48 } 49 50 public NativeMethodTestCase(String name) 51 { 52 super(name); 53 } 54 55 public void testNativeMethod()throws Exception 56 { 57 POJO pojo = new POJO(); 58 assertEquals(5, pojo.nativeMethod()); 59 } 60 } 61 | Popular Tags |