KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > inheritedmixinbug > Target


1 /***************************************************************************************************
2  * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
3  * http://aspectwerkz.codehaus.org *
4  * ---------------------------------------------------------------------------------- * The software
5  * in this package is published under the terms of the LGPL license * a copy of which has been
6  * included with this distribution in the license.txt file. *
7  **************************************************************************************************/

8 package test.inheritedmixinbug;
9
10 import junit.framework.TestCase;
11
12 public class Target extends TestCase {
13     public Target() {
14     }
15
16     public Target(String JavaDoc name) {
17         super(name);
18     }
19
20     public void testInstanceOf() {
21         assertTrue(new Target() instanceof Aintf);
22     }
23
24     public static junit.framework.Test suite() {
25         return new junit.framework.TestSuite(Target.class);
26     }
27
28     public static void main(String JavaDoc[] args) {
29         junit.textui.TestRunner.run(suite());
30     }
31 }
Popular Tags