1 22 package org.jboss.test.aop.field; 23 24 import junit.framework.Test; 25 import junit.framework.TestSuite; 26 import junit.textui.TestRunner; 27 28 import org.jboss.test.aop.AOPTestWithSetup; 29 30 35 public class FieldTestCase extends AOPTestWithSetup 36 { 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("FieldTestCase"); 46 suite.addTestSuite(FieldTestCase.class); 47 return suite; 48 } 49 50 public FieldTestCase(String name) 51 { 52 super(name); 53 } 54 55 protected void setUp() throws Exception 56 { 57 super.setUp(); 58 } 59 60 public void testField() 61 { 62 System.out.println("*** testField"); 63 SubPOJO spojo = new SubPOJO(4); 64 assertEquals("Field is not set correctly", spojo.getPOJOField(), (spojo.getSubPOJOField()/2)); 65 } 66 67 } 68 | Popular Tags |