Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornhauge2011-11-30 16:24:40 +0000
committernhauge2011-11-30 16:24:40 +0000
commit18d5780f415a9e763da2d8d84f3e306930b51135 (patch)
treec93a53d54cb8ae9e0659a3460577b57e7403fd91 /jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa
parent38a857e295e4d39e458b3f7683dd914893b804c5 (diff)
downloadwebtools.dali-18d5780f415a9e763da2d8d84f3e306930b51135.tar.gz
webtools.dali-18d5780f415a9e763da2d8d84f3e306930b51135.tar.xz
webtools.dali-18d5780f415a9e763da2d8d84f3e306930b51135.zip
364996 - Fix tests for queries on mappedsuperclass.
Diffstat (limited to 'jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa')
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaEntityTests.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaEntityTests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaEntityTests.java
index b865594e6c..fc1adbc1d5 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaEntityTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/context/java/JavaEntityTests.java
@@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.tests.internal.context.java;
import java.util.Iterator;
import java.util.ListIterator;
+
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement.Kind;
import org.eclipse.jpt.common.core.resource.java.JavaResourceType;
@@ -417,8 +418,8 @@ public class JavaEntityTests extends ContextModelTestCase
assertNull(resourceType.getAnnotation(TableGeneratorAnnotation.ANNOTATION_NAME));
assertNull(resourceType.getAnnotation(SequenceGeneratorAnnotation.ANNOTATION_NAME));
assertNotNull(resourceType.getAnnotation(IdClassAnnotation.ANNOTATION_NAME));
- assertNull(resourceType.getAnnotation(0, NamedQueryAnnotation.ANNOTATION_NAME));
- assertNull(resourceType.getAnnotation(0, NamedNativeQueryAnnotation.ANNOTATION_NAME));
+ assertNotNull(resourceType.getAnnotation(0, NamedQueryAnnotation.ANNOTATION_NAME));
+ assertNotNull(resourceType.getAnnotation(0, NamedNativeQueryAnnotation.ANNOTATION_NAME));
}
public void testMorphToEmbeddable() throws Exception {

Back to the top