Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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