1 22 package org.jboss.test.aop.regression.jbaop264underscorefieldname; 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 UnderscoreInFieldNameTestCase 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("AnnotationOverrideTestCase"); 46 suite.addTestSuite(UnderscoreInFieldNameTestCase.class); 47 return suite; 48 } 49 50 public UnderscoreInFieldNameTestCase(String name) 51 { 52 super(name); 53 } 54 55 public void testAnnotationOverrides()throws Exception 56 { 57 POJO pojo = new POJO(6, 10); 58 assertTrue(TestAspect.fields.contains("_foo")); 59 assertTrue(TestAspect.fields.contains("_bar")); 60 } 61 } 62 | Popular Tags |