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