Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jpa/tests
diff options
context:
space:
mode:
authorkmoore2008-04-07 15:33:34 +0000
committerkmoore2008-04-07 15:33:34 +0000
commit7690560240e5db8374fca0af900ef9e84bb482bc (patch)
tree24006d96a6b3e129922c40e782bed1545d617bb2 /jpa/tests
parent10e8acb5daee2c57374830717b7eb0e25416f18b (diff)
downloadwebtools.dali-7690560240e5db8374fca0af900ef9e84bb482bc.tar.gz
webtools.dali-7690560240e5db8374fca0af900ef9e84bb482bc.tar.xz
webtools.dali-7690560240e5db8374fca0af900ef9e84bb482bc.zip
223418- begin cleaning things up so we can move to using the ast model instead of the jdt model
Diffstat (limited to 'jpa/tests')
-rw-r--r--jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/utility/jdt/JDTToolsTests.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/utility/jdt/JDTToolsTests.java b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/utility/jdt/JDTToolsTests.java
index fdbf01259a..3fa9437aed 100644
--- a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/utility/jdt/JDTToolsTests.java
+++ b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/utility/jdt/JDTToolsTests.java
@@ -40,7 +40,7 @@ public class JDTToolsTests extends AnnotationTestCase {
DeclarationAnnotationElementAdapter<String> daea = ConversionDeclarationAnnotationElementAdapter.forStrings(daa, "foo");
JDTFieldAttribute field = this.idField();
- String actual = JDTTools.resolveEnum((Name) daea.getExpression(field.getModifiedDeclaration()));
+ String actual = JDTTools.resolveEnum((Name) daea.getExpression(field.getModifiedDeclaration(this.idField().getAstRoot())));
assertEquals("enums.TestEnum.BAZ", actual);
}
@@ -53,7 +53,7 @@ public class JDTToolsTests extends AnnotationTestCase {
DeclarationAnnotationElementAdapter<String> daea = ConversionDeclarationAnnotationElementAdapter.forStrings(daa, "foo");
JDTFieldAttribute field = this.idField();
- String actual = JDTTools.resolveEnum((Name) daea.getExpression(field.getModifiedDeclaration()));
+ String actual = JDTTools.resolveEnum((Name) daea.getExpression(field.getModifiedDeclaration(this.idField().getAstRoot())));
assertEquals("enums.TestEnum.BAZ", actual);
}
@@ -66,7 +66,7 @@ public class JDTToolsTests extends AnnotationTestCase {
DeclarationAnnotationElementAdapter<String> daea = ConversionDeclarationAnnotationElementAdapter.forStrings(daa, "foo");
JDTFieldAttribute field = this.idField();
- String actual = JDTTools.resolveEnum((Name)daea.getExpression(field.getModifiedDeclaration()));
+ String actual = JDTTools.resolveEnum((Name)daea.getExpression(field.getModifiedDeclaration(this.idField().getAstRoot())));
assertEquals("enums.TestEnum.BAZ", actual);
}
@@ -79,7 +79,7 @@ public class JDTToolsTests extends AnnotationTestCase {
DeclarationAnnotationElementAdapter<String> daea = ConversionDeclarationAnnotationElementAdapter.forStrings(daa, "foo");
JDTFieldAttribute field = this.idField();
- String actual = JDTTools.resolveEnum((Name) daea.getExpression(field.getModifiedDeclaration()));
+ String actual = JDTTools.resolveEnum((Name) daea.getExpression(field.getModifiedDeclaration(this.idField().getAstRoot())));
assertEquals("enums.TestEnum.BAZ", actual);
}

Back to the top