01: /***************************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- * The software
05: * in this package is published under the terms of the LGPL license * a copy of which has been
06: * included with this distribution in the license.txt file. *
07: **************************************************************************************************/package test.interfacesubtypebug;
08:
09: import junit.framework.TestCase;
10:
11: public class InterfaceSubtypeBug extends TestCase {
12: public static String LOG = "";
13:
14: public InterfaceSubtypeBug() {
15: }
16:
17: public InterfaceSubtypeBug(String name) {
18: super (name);
19: }
20:
21: public void testInterfaceMethod() {
22: LOG = "";
23: Target target = new Target();
24: target.interfaceMethod();
25: //FIXME assertEquals("interface interface ", LOG);
26: }
27:
28: public void testNonInterfaceMethod() {
29: LOG = "";
30: Target target = new Target();
31: target.interfaceMethod();
32: //FIXME assertEquals("", LOG);
33: }
34:
35: public static junit.framework.Test suite() {
36: return new junit.framework.TestSuite(InterfaceSubtypeBug.class);
37: }
38: }
|