1 8 package test.interfacesubtypebug; 9 10 import junit.framework.TestCase; 11 12 public class InterfaceSubtypeBug extends TestCase { 13 public static String LOG = ""; 14 15 public InterfaceSubtypeBug() { 16 } 17 18 public InterfaceSubtypeBug(String name) { 19 super(name); 20 } 21 22 public void testInterfaceMethod() { 23 LOG = ""; 24 Target target = new Target(); 25 target.interfaceMethod(); 26 } 28 29 public void testNonInterfaceMethod() { 30 LOG = ""; 31 Target target = new Target(); 32 target.interfaceMethod(); 33 } 35 36 public static junit.framework.Test suite() { 37 return new junit.framework.TestSuite(InterfaceSubtypeBug.class); 38 } 39 } | Popular Tags |