aboutsummaryrefslogtreecommitdiffstats
path: root/bcel-builder/testsrc
diff options
context:
space:
mode:
Diffstat (limited to 'bcel-builder/testsrc')
-rw-r--r--bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/AnonymousClassTest.java5
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 {