diff options
author | acolyer <acolyer> | 2005-12-02 06:56:14 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-12-02 06:56:14 +0000 |
commit | 15941fb2e3b8fe79e48008030d2b7b0e6c3a302a (patch) | |
tree | 10da0c03b9b30efdcadbcfb8d961fe6fc7fa704d /bcel-builder/testsrc | |
parent | a75b7fa48b233e41ed7aeb7d50fbdd411eadd8e6 (diff) | |
download | aspectj-15941fb2e3b8fe79e48008030d2b7b0e6c3a302a.tar.gz aspectj-15941fb2e3b8fe79e48008030d2b7b0e6c3a302a.zip |
updates to bcel to support isNested test on JavaClass
Diffstat (limited to 'bcel-builder/testsrc')
-rw-r--r-- | bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/AnonymousClassTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/AnonymousClassTest.java b/bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/AnonymousClassTest.java index 34cc01352..4a9bc0a3f 100644 --- a/bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/AnonymousClassTest.java +++ b/bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/AnonymousClassTest.java @@ -30,22 +30,25 @@ public class AnonymousClassTest extends TestCase { public void testRegularClassIsNotAnonymous() throws ClassNotFoundException { JavaClass clazz = repos.loadClass("AnonymousClassTest"); assertFalse("regular outer classes are not anonymous",clazz.isAnonymous()); + assertFalse("regular outer classes are not nested",clazz.isNested()); } public void testNamedInnerClassIsNotAnonymous() throws ClassNotFoundException { JavaClass clazz = repos.loadClass("AnonymousClassTest$X"); assertFalse("regular inner classes are not anonymous",clazz.isAnonymous()); + assertTrue("regular inner classes are nested",clazz.isNested()); } public void testStaticInnerClassIsNotAnonymous() throws ClassNotFoundException { JavaClass clazz = repos.loadClass("AnonymousClassTest$Y"); assertFalse("regular static inner classes are not anonymous",clazz.isAnonymous()); + assertTrue("regular static inner classes are nested",clazz.isNested()); } public void testAnonymousInnerClassIsAnonymous() throws ClassNotFoundException { JavaClass clazz = repos.loadClass("AnonymousClassTest$1"); assertTrue("anonymous inner classes are anonymous",clazz.isAnonymous()); - + assertTrue("anonymous inner classes are anonymous",clazz.isNested()); } protected void setUp() throws Exception { |