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.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
27 }
28
29 public void testNonInterfaceMethod() {
30 LOG = "";
31 Target target = new Target();
32 target.interfaceMethod();
33
34 }
35
36 public static junit.framework.Test suite() {
37 return new junit.framework.TestSuite(InterfaceSubtypeBug.class);
38 }
39 }