1 8 package test.superclassconstructor; 9 10 import junit.framework.TestCase; 11 12 15 public class SuperClassConstructorTest extends TestCase { 16 public void testSuperClassConstructorCallsOverriddenAdvisedMemberMethod() { 17 try { 18 new D(); 19 } catch (Exception e) { 20 fail(); 21 } 22 } 23 24 public static void main(String [] args) { 25 junit.textui.TestRunner.run(suite()); 26 } 27 28 public static junit.framework.Test suite() { 29 return new junit.framework.TestSuite(SuperClassConstructorTest.class); 30 } 31 } | Popular Tags |