diff options
author | aclement <aclement> | 2009-09-10 15:35:03 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-09-10 15:35:03 +0000 |
commit | eb469760c544f92e63107d43a7012f86d8760fd4 (patch) | |
tree | 90c625dfc7acd6161f0a8f6572bc56ab0bb33cf6 /bcel-builder/testsrc/org/aspectj | |
parent | 0e2c4bfe4300ff87cc800624f54d0eae13c67292 (diff) | |
download | aspectj-eb469760c544f92e63107d43a7012f86d8760fd4.tar.gz aspectj-eb469760c544f92e63107d43a7012f86d8760fd4.zip |
refactoring
Diffstat (limited to 'bcel-builder/testsrc/org/aspectj')
-rw-r--r-- | bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/EnclosingMethodAttributeTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/EnclosingMethodAttributeTest.java b/bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/EnclosingMethodAttributeTest.java index bcf4403bb..a03c9b386 100644 --- a/bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/EnclosingMethodAttributeTest.java +++ b/bcel-builder/testsrc/org/aspectj/apache/bcel/classfile/tests/EnclosingMethodAttributeTest.java @@ -38,7 +38,7 @@ public class EnclosingMethodAttributeTest extends BcelTestCase { Attribute[] encMethodAttrs = findAttribute("EnclosingMethod", clazz); assertTrue("Expected 1 EnclosingMethod attribute but found " + encMethodAttrs.length, encMethodAttrs.length == 1); EnclosingMethod em = (EnclosingMethod) encMethodAttrs[0]; - String enclosingClassName = em.getEnclosingClass().getConstantValue(pool); + String enclosingClassName = em.getEnclosingClass().getClassname(pool); String enclosingMethodName = em.getEnclosingMethod().getName(pool); assertTrue("Expected class name to be 'AttributeTestClassEM01' but was " + enclosingClassName, enclosingClassName .equals("AttributeTestClassEM01")); @@ -56,7 +56,7 @@ public class EnclosingMethodAttributeTest extends BcelTestCase { Attribute[] encMethodAttrs = findAttribute("EnclosingMethod", clazz); assertTrue("Expected 1 EnclosingMethod attribute but found " + encMethodAttrs.length, encMethodAttrs.length == 1); EnclosingMethod em = (EnclosingMethod) encMethodAttrs[0]; - String enclosingClassName = em.getEnclosingClass().getConstantValue(pool); + String enclosingClassName = em.getEnclosingClass().getClassname(pool); assertTrue("The class is not within a method, so method_index should be null, but it is " + em.getEnclosingMethodIndex(), em.getEnclosingMethodIndex() == 0); assertTrue("Expected class name to be 'AttributeTestClassEM02' but was " + enclosingClassName, enclosingClassName @@ -82,7 +82,7 @@ public class EnclosingMethodAttributeTest extends BcelTestCase { SyntheticRepository repos2 = createRepos("."); JavaClass clazz2 = repos2.loadClass("AttributeTestClassEM02$1"); EnclosingMethod em = (EnclosingMethod) encMethodAttrs[0]; - String enclosingClassName = em.getEnclosingClass().getConstantValue(pool); + String enclosingClassName = em.getEnclosingClass().getClassname(pool); assertTrue("The class is not within a method, so method_index should be null, but it is " + em.getEnclosingMethodIndex(), em.getEnclosingMethodIndex() == 0); assertTrue("Expected class name to be 'AttributeTestClassEM02' but was " + enclosingClassName, enclosingClassName |