1 8 package test.withinstaticref; 9 10 import junit.framework.TestCase; 11 12 17 public class WithinStaticRefTest extends TestCase { 18 public void testWithinAspect() { 19 WithinAspect.s_count = 0; 20 TargetA.suite(); 21 assertEquals(WithinAspect.s_count, 4); 22 } 24 25 public static void main(String [] args) { 27 junit.textui.TestRunner.run(suite()); 28 } 29 30 public static junit.framework.Test suite() { 31 return new junit.framework.TestSuite(WithinStaticRefTest.class); 32 } 33 } 34 | Popular Tags |