Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2011-08-01 15:08:18 +0000
committerkmoore2011-08-01 15:08:18 +0000
commit188fe8a8a0f3f5e21db478434744dd8756739a4f (patch)
tree2f3e070a6ebf648ee94e5c35e277b84368f40d43 /jaxb/tests
parentb8c19f68cd05dcc6deb49cd81906f097fc0ffe6b (diff)
downloadwebtools.dali-188fe8a8a0f3f5e21db478434744dd8756739a4f.tar.gz
webtools.dali-188fe8a8a0f3f5e21db478434744dd8756739a4f.tar.xz
webtools.dali-188fe8a8a0f3f5e21db478434744dd8756739a4f.zip
No need to check isMapped() for a superclass, references are automatically mapped in JAXB
Diffstat (limited to 'jaxb/tests')
-rw-r--r--jaxb/tests/org.eclipse.jpt.jaxb.core.tests/src/org/eclipse/jpt/jaxb/core/tests/internal/context/java/GenericJavaPersistentClassTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/jaxb/tests/org.eclipse.jpt.jaxb.core.tests/src/org/eclipse/jpt/jaxb/core/tests/internal/context/java/GenericJavaPersistentClassTests.java b/jaxb/tests/org.eclipse.jpt.jaxb.core.tests/src/org/eclipse/jpt/jaxb/core/tests/internal/context/java/GenericJavaPersistentClassTests.java
index 019d0c0300..94aff3c27f 100644
--- a/jaxb/tests/org.eclipse.jpt.jaxb.core.tests/src/org/eclipse/jpt/jaxb/core/tests/internal/context/java/GenericJavaPersistentClassTests.java
+++ b/jaxb/tests/org.eclipse.jpt.jaxb.core.tests/src/org/eclipse/jpt/jaxb/core/tests/internal/context/java/GenericJavaPersistentClassTests.java
@@ -624,14 +624,14 @@ public class GenericJavaPersistentClassTests
assertEquals(persistentClass, childPersistentClass.getSuperClass());
- //This test will change when we no longer depend on there being an @XmlType annotation for something to be persistent
+ //test that the superClass is not null even when it is unannotated
AnnotatedElement annotatedElement = this.annotatedElement(persistentClass.getJavaResourceType());
annotatedElement.edit(new Member.Editor() {
public void edit(ModifiedDeclaration declaration) {
GenericJavaPersistentClassTests.this.removeAnnotation(declaration, XmlTypeAnnotation.ANNOTATION_NAME);
}
});
- assertNull(childPersistentClass.getSuperClass());
+ assertEquals(persistentClass, childPersistentClass.getSuperClass());
}
public void testModifyAccessOrder() throws Exception {

Back to the top