01: package test.implementsbug;
02:
03: import junit.framework.TestCase;
04:
05: public class ImplementsTest extends TestCase {
06: public ImplementsTest() {
07: }
08:
09: public ImplementsTest(String name) {
10: super (name);
11: }
12:
13: public void testInstanceOf() {
14: assertTrue(new TestModel() instanceof Subject);
15: assertTrue(new TestView() instanceof Observer);
16: }
17:
18: public static junit.framework.Test suite() {
19: return new junit.framework.TestSuite(ImplementsTest.class);
20: }
21: }
|