1 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 } | Popular Tags |