01: /**
02: * ***********************************************************************************
03: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
04: * http://aspectwerkz.codehaus.org *
05: * ---------------------------------------------------------------------------------- *
06: * The software in this package is published under the terms of the LGPL license *
07: * a copy of which has been included with this distribution in the license.txt file. *
08: * ************************************************************************************
09: */package test.advisetostringbug;
10:
11: import junit.framework.TestCase;
12:
13: public class Test extends TestCase {
14:
15: public void test1() {
16: A a = new AImpl();
17: B b = (B) a;
18: b.toString(true, "");
19: }
20:
21: public Test(String name) {
22: super (name);
23: }
24:
25: public static void main(String[] args) {
26: junit.textui.TestRunner.run(suite());
27: }
28:
29: public static junit.framework.Test suite() {
30: return new junit.framework.TestSuite(Test.class);
31: }
32: }
|