summaryrefslogtreecommitdiffstats
path: root/bcel-builder/testsrc/org/aspectj
diff options
context:
space:
mode:
authoraclement <aclement>2009-09-10 15:35:03 +0000
committeraclement <aclement>2009-09-10 15:35:03 +0000
commiteb469760c544f92e63107d43a7012f86d8760fd4 (patch)
tree90c625dfc7acd6161f0a8f6572bc56ab0bb33cf6 /bcel-builder/testsrc/org/aspectj
parent0e2c4bfe4300ff87cc800624f54d0eae13c67292 (diff)
downloadaspectj-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.java6
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