1 /*************************************************************************************** 2 * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. * 3 * http://aspectwerkz.codehaus.org * 4 * ---------------------------------------------------------------------------------- * 5 * The software in this package is published under the terms of the LGPL license * 6 * a copy of which has been included with this distribution in the license.txt file. * 7 **************************************************************************************/ 8 package test.superclassconstructor; 9 10 import junit.framework.TestCase; 11 12 /*** 13 * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a> 14 */ 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 }