KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > implementsbug > ImplementsTest


1 package test.implementsbug;
2
3 import junit.framework.TestCase;
4
5 public class ImplementsTest extends TestCase {
6     public ImplementsTest() {
7     }
8
9     public ImplementsTest(String JavaDoc 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 }
Popular Tags