01: package net.sf.mockcreator.dumby;
02:
03: import net.sf.mockcreator.dumby.Dumby1;
04: import net.sf.mockcreator.dumby.LimitedDepth;
05: import net.sf.mockcreator.dumby.LimitedDepthSuper;
06: import net.sf.mockcreator.dumby.MockBugNoNestedClasses;
07: import net.sf.mockcreator.dumby.MockF1;
08: import net.sf.mockcreator.dumby.MockF2;
09: import net.sf.mockcreator.dumby.MockF3;
10: import net.sf.mockcreator.dumby.MockF4;
11: import net.sf.mockcreator.dumby.MockF5;
12: import net.sf.mockcreator.exceptions.MockException;
13:
14: public class BugNoNestedClassesTest extends net.sf.mockcreator.TestCase {
15:
16: public void testAll() throws Exception {
17: // MockBugNoNestedClasses nnc = new MockBugNoNestedClasses();
18: //
19: // BugNoNestedClasses.Iface iface;
20: // BugNoNestedClasses.ProtectedIface piface;
21: //
22: // BugNoNestedClasses.InnerClass ic;
23: // BugNoNestedClasses.InnerStaticClass isc;
24: // BugNoNestedClasses.InnerProtectedStaticClass isc;
25: }
26:
27: public void testPublicInterface() throws Exception {
28: BugNoNestedClasses.Iface iface = new BugNoNestedClasses.Iface() {
29: public void foo() {
30: }
31: };
32:
33: assertNotNull(BugNoNestedClasses.Iface.class.getMethod("foo",
34: (Class[]) null));
35: assertEquals("S2", BugNoNestedClasses.Iface.s2);
36: }
37: }
|