Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2009-11-25 11:47:55 -0500
committerkmoore2009-11-25 11:47:55 -0500
commitbfc8a6bddae31e130cfb9df479d303ca3825e26f (patch)
treed0bd853c78602669ecd2ad2a000ca31415a8f1fb
parentc1b3ad208251fa16ce4ee216378a6d49eab9559a (diff)
downloadwebtools.dali-bfc8a6bddae31e130cfb9df479d303ca3825e26f.tar.gz
webtools.dali-bfc8a6bddae31e130cfb9df479d303ca3825e26f.tar.xz
webtools.dali-bfc8a6bddae31e130cfb9df479d303ca3825e26f.zip
removed calls to getOrmXmlResource().save() as these were just for debug purposes
-rw-r--r--jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/java/JavaNamedNativeQueryTests.java6
-rw-r--r--jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmColumnTests.java1
-rw-r--r--jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEmbeddedIdMappingTests.java1
-rw-r--r--jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEmbeddedMappingTests.java1
-rw-r--r--jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEntityTests.java1
-rw-r--r--jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmXmlTests.java2
-rw-r--r--jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jpa2/context/java/GenericJavaEmbeddedMapping2_0Tests.java2
7 files changed, 0 insertions, 14 deletions
diff --git a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/java/JavaNamedNativeQueryTests.java b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/java/JavaNamedNativeQueryTests.java
index 0460ea83c2..ffd53a9e3b 100644
--- a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/java/JavaNamedNativeQueryTests.java
+++ b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/java/JavaNamedNativeQueryTests.java
@@ -153,24 +153,18 @@ public class JavaNamedNativeQueryTests extends ContextModelTestCase
QueryHint queryHint = namedNativeQuery.addHint(0);
- getOrmXmlResource().save(null);
queryHint.setName("FOO");
- getOrmXmlResource().save(null);
assertEquals("FOO", javaNamedNativeQuery.hintAt(0).getName());
QueryHint queryHint2 = namedNativeQuery.addHint(0);
- getOrmXmlResource().save(null);
queryHint2.setName("BAR");
- getOrmXmlResource().save(null);
assertEquals("BAR", javaNamedNativeQuery.hintAt(0).getName());
assertEquals("FOO", javaNamedNativeQuery.hintAt(1).getName());
QueryHint queryHint3 = namedNativeQuery.addHint(1);
- getOrmXmlResource().save(null);
queryHint3.setName("BAZ");
- getOrmXmlResource().save(null);
assertEquals("BAR", javaNamedNativeQuery.hintAt(0).getName());
assertEquals("BAZ", javaNamedNativeQuery.hintAt(1).getName());
diff --git a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmColumnTests.java b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmColumnTests.java
index f41264f148..650b93f266 100644
--- a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmColumnTests.java
+++ b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmColumnTests.java
@@ -78,7 +78,6 @@ public class OrmColumnTests extends ContextModelTestCase
//set name in the resource model, verify context model updated
basic.setColumn(OrmFactory.eINSTANCE.createXmlColumn());
basic.getColumn().setName("FOO");
- getOrmXmlResource().save(null);
assertEquals("FOO", ormColumn.getSpecifiedName());
assertEquals("FOO", basic.getColumn().getName());
diff --git a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEmbeddedIdMappingTests.java b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEmbeddedIdMappingTests.java
index 056b8d304a..2f4c7bdb9d 100644
--- a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEmbeddedIdMappingTests.java
+++ b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEmbeddedIdMappingTests.java
@@ -724,7 +724,6 @@ public class OrmEmbeddedIdMappingTests extends ContextModelTestCase
//embedded mapping is specified, virtual attribute overrides should exist
persistentType.getAttributeNamed("address").makeSpecified();
- getOrmXmlResource().save(null);
embeddedIdMapping = (OrmEmbeddedIdMapping) persistentType.getAttributeNamed("address").getMapping();
attributeOverrideContainer = embeddedIdMapping.getAttributeOverrideContainer();
assertEquals(4, attributeOverrideContainer.attributeOverridesSize());
diff --git a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEmbeddedMappingTests.java b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEmbeddedMappingTests.java
index 6fa3241a34..feb7a6d840 100644
--- a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEmbeddedMappingTests.java
+++ b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEmbeddedMappingTests.java
@@ -493,7 +493,6 @@ public class OrmEmbeddedMappingTests extends ContextModelTestCase
//embedded mapping is specified, virtual attribute overrides should exist
persistentType.getAttributeNamed("address").makeSpecified();
- getOrmXmlResource().save(null);
embeddedMapping = (OrmEmbeddedMapping) persistentType.getAttributeNamed("address").getMapping();
attributeOverrideContainer = embeddedMapping.getAttributeOverrideContainer();
assertEquals(4, attributeOverrideContainer.attributeOverridesSize());
diff --git a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEntityTests.java b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEntityTests.java
index 6439e85e29..20875fa229 100644
--- a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEntityTests.java
+++ b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmEntityTests.java
@@ -2108,7 +2108,6 @@ public class OrmEntityTests extends ContextModelTestCase
entity.setSpecifiedMetadataComplete(Boolean.FALSE);
entity.getJavaEntity().getAssociationOverrideContainer().virtualAssociationOverrides().next().setVirtual(false);
- getOrmXmlResource().save(null);
JavaAssociationOverride javaAssociationOverride = entity.getJavaEntity().getAssociationOverrideContainer().specifiedAssociationOverrides().next();
JavaJoinColumnJoiningStrategy javaJoiningStrategy = javaAssociationOverride.getRelationshipReference().getJoinColumnJoiningStrategy();
diff --git a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmXmlTests.java b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmXmlTests.java
index 8c5e5f2340..a06171d898 100644
--- a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmXmlTests.java
+++ b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/context/orm/OrmXmlTests.java
@@ -43,7 +43,6 @@ public class OrmXmlTests extends ContextModelTestCase
assertEquals(2, getJpaProject().jpaFilesSize());
JpaXmlResource ormResource = getOrmXmlResource();
ormResource.getContents().clear();
- ormResource.save(null);
//the ContentType of the orm.xml file is no longer orm, so the jpa file is removed
assertNull(getOrmXml());
@@ -52,7 +51,6 @@ public class OrmXmlTests extends ContextModelTestCase
XmlEntityMappings xmlEntityMappings = OrmFactory.eINSTANCE.createXmlEntityMappings();
xmlEntityMappings.setVersion("1.0");
ormResource.getContents().add(xmlEntityMappings);
- ormResource.save(null);
assertNotNull(getOrmXml().getEntityMappings());
assertEquals(2, getJpaProject().jpaFilesSize());
diff --git a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jpa2/context/java/GenericJavaEmbeddedMapping2_0Tests.java b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jpa2/context/java/GenericJavaEmbeddedMapping2_0Tests.java
index 3c2035a5fd..95cda494c1 100644
--- a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jpa2/context/java/GenericJavaEmbeddedMapping2_0Tests.java
+++ b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jpa2/context/java/GenericJavaEmbeddedMapping2_0Tests.java
@@ -1250,8 +1250,6 @@ public class GenericJavaEmbeddedMapping2_0Tests extends Generic2_0ContextModelTe
addXmlClassRef(FULLY_QUALIFIED_TYPE_NAME);
addXmlClassRef(FULLY_QUALIFIED_EMBEDDABLE_TYPE_NAME);
addXmlClassRef(PACKAGE_NAME + ".Address");
- getPersistenceXmlResource().save(null);
- getOrmXmlResource().save(null);
JavaEmbeddedMapping2_0 embeddedMapping = (JavaEmbeddedMapping2_0) getJavaPersistentType().getAttributeNamed("myEmbedded").getMapping();
AssociationOverrideContainer overrideContainer = embeddedMapping.getAssociationOverrideContainer();

Back to the top