01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package test.superclassconstructor;
08:
09: import junit.framework.TestCase;
10:
11: /**
12: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
13: */
14: public class SuperClassConstructorTest extends TestCase {
15: public void testSuperClassConstructorCallsOverriddenAdvisedMemberMethod() {
16: try {
17: new D();
18: } catch (Exception e) {
19: fail();
20: }
21: }
22:
23: public static void main(String[] args) {
24: junit.textui.TestRunner.run(suite());
25: }
26:
27: public static junit.framework.Test suite() {
28: return new junit.framework.TestSuite(
29: SuperClassConstructorTest.class);
30: }
31: }
|