Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbvosburgh2012-03-07 23:59:11 +0000
committerbvosburgh2012-03-07 23:59:11 +0000
commit54a77902ae5cb01c9ce91b989ee0b1c48dbb6b44 (patch)
treefb6132094d68bbb5d2c5cd86edc769ea912df4db /jpa/tests/org.eclipse.jpt.jpa.core.tests
parented0393f0a4ae6db028bab11e8271504d12beec81 (diff)
downloadwebtools.dali-54a77902ae5cb01c9ce91b989ee0b1c48dbb6b44.tar.gz
webtools.dali-54a77902ae5cb01c9ce91b989ee0b1c48dbb6b44.tar.xz
webtools.dali-54a77902ae5cb01c9ce91b989ee0b1c48dbb6b44.zip
tweak test
Diffstat (limited to 'jpa/tests/org.eclipse.jpt.jpa.core.tests')
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/persistence/Generic2_0JpaMetadataConversionTests.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/persistence/Generic2_0JpaMetadataConversionTests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/persistence/Generic2_0JpaMetadataConversionTests.java
index 4296247f9b..8e84da3f7c 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/persistence/Generic2_0JpaMetadataConversionTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/jpa2/context/persistence/Generic2_0JpaMetadataConversionTests.java
@@ -247,7 +247,7 @@ public class Generic2_0JpaMetadataConversionTests extends
Collection<OrmNamedNativeQuery> namedNativeQueries = CollectionTools.collection(entityMappings.getQueryContainer().getNamedNativeQueries());
// test the first mapping file query
- OrmNamedNativeQuery nnq1 = this.selectNodeNamed(namedNativeQueries, "nnq1");
+ OrmNamedNativeQuery nnq1 = selectNodeNamed(namedNativeQueries, "nnq1");
assertEquals("nnq1", (nnq1.getName()));
assertEquals("abcd", (nnq1.getQuery()));
assertEquals("foo1", nnq1.getResultClass());
@@ -268,7 +268,7 @@ public class Generic2_0JpaMetadataConversionTests extends
assertEquals("bbb", nnq1hint2.getValue());
// test the second mapping file query
- OrmNamedNativeQuery nnq2 = this.selectNodeNamed(namedNativeQueries, "nnq2");
+ OrmNamedNativeQuery nnq2 = selectNodeNamed(namedNativeQueries, "nnq2");
assertEquals("nnq2", (nnq2.getName()));
assertEquals("efgh", (nnq2.getQuery()));
assertEquals("foo2", nnq2.getResultClass());
@@ -284,7 +284,7 @@ public class Generic2_0JpaMetadataConversionTests extends
}
- private <N extends JpaNamedContextNode> N selectNodeNamed(Iterable<N> nodes, String name) {
+ public static <N extends JpaNamedContextNode> N selectNodeNamed(Iterable<N> nodes, String name) {
for (N node : nodes) {
if (node.getName().equals(name)) {
return node;
@@ -410,7 +410,7 @@ public class Generic2_0JpaMetadataConversionTests extends
Collection<OrmNamedNativeQuery> namedNativeQueries = CollectionTools.collection(entityMappings.getQueryContainer().getNamedNativeQueries());
// test the first mapping file query
- OrmNamedNativeQuery nnq1 = this.selectNodeNamed(namedNativeQueries, "nnq1");
+ OrmNamedNativeQuery nnq1 = selectNodeNamed(namedNativeQueries, "nnq1");
assertEquals("nnq1", (nnq1.getName()));
assertEquals("abcd", (nnq1.getQuery()));
assertEquals("foo1", nnq1.getResultClass());
@@ -431,7 +431,7 @@ public class Generic2_0JpaMetadataConversionTests extends
assertEquals("bbb", nnq1hint2.getValue());
// test the second mapping file query
- OrmNamedNativeQuery nnq2 = this.selectNodeNamed(namedNativeQueries, "nnq2");
+ OrmNamedNativeQuery nnq2 = selectNodeNamed(namedNativeQueries, "nnq2");
assertEquals("nnq2", (nnq2.getName()));
assertEquals("efgh", (nnq2.getQuery()));
assertEquals("foo2", nnq2.getResultClass());

Back to the top