diff options
Diffstat (limited to 'jpa/tests/org.eclipse.jpt.eclipselink.core.tests/src/org/eclipse/jpt/eclipselink2_0/core/tests/internal/context/java/EclipseLink2_0JavaManyToOneMappingTests.java')
-rw-r--r-- | jpa/tests/org.eclipse.jpt.eclipselink.core.tests/src/org/eclipse/jpt/eclipselink2_0/core/tests/internal/context/java/EclipseLink2_0JavaManyToOneMappingTests.java | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/jpa/tests/org.eclipse.jpt.eclipselink.core.tests/src/org/eclipse/jpt/eclipselink2_0/core/tests/internal/context/java/EclipseLink2_0JavaManyToOneMappingTests.java b/jpa/tests/org.eclipse.jpt.eclipselink.core.tests/src/org/eclipse/jpt/eclipselink2_0/core/tests/internal/context/java/EclipseLink2_0JavaManyToOneMappingTests.java index f4adef5201..24e7475894 100644 --- a/jpa/tests/org.eclipse.jpt.eclipselink.core.tests/src/org/eclipse/jpt/eclipselink2_0/core/tests/internal/context/java/EclipseLink2_0JavaManyToOneMappingTests.java +++ b/jpa/tests/org.eclipse.jpt.eclipselink.core.tests/src/org/eclipse/jpt/eclipselink2_0/core/tests/internal/context/java/EclipseLink2_0JavaManyToOneMappingTests.java @@ -262,26 +262,26 @@ public class EclipseLink2_0JavaManyToOneMappingTests assertNull(resourceAttribute.getAnnotation(JPA.JOIN_COLUMN)); assertNull(resourceAttribute.getAnnotation(JPA.JOIN_TABLE)); - assertTrue(rel.usesJoinColumnJoiningStrategy()); - assertFalse(rel.usesJoinTableJoiningStrategy()); + assertTrue(rel.strategyIsJoinColumn()); + assertFalse(rel.strategyIsJoinTable()); - rel.setJoinColumnJoiningStrategy(); + rel.setStrategyToJoinColumn(); assertNull(resourceAttribute.getAnnotation(JPA.JOIN_COLUMN)); assertNull(resourceAttribute.getAnnotation(JPA.JOIN_TABLE)); - assertTrue(rel.usesJoinColumnJoiningStrategy()); - assertFalse(rel.usesJoinTableJoiningStrategy()); + assertTrue(rel.strategyIsJoinColumn()); + assertFalse(rel.strategyIsJoinTable()); - rel.setJoinTableJoiningStrategy(); + rel.setStrategyToJoinTable(); assertNull(resourceAttribute.getAnnotation(JPA.JOIN_COLUMN)); assertNotNull(resourceAttribute.getAnnotation(JPA.JOIN_TABLE)); - assertFalse(rel.usesJoinColumnJoiningStrategy()); - assertTrue(rel.usesJoinTableJoiningStrategy()); + assertFalse(rel.strategyIsJoinColumn()); + assertTrue(rel.strategyIsJoinTable()); - rel.setJoinColumnJoiningStrategy(); + rel.setStrategyToJoinColumn(); assertNull(resourceAttribute.getAnnotation(JPA.JOIN_COLUMN)); assertNull(resourceAttribute.getAnnotation(JPA.JOIN_TABLE)); - assertTrue(rel.usesJoinColumnJoiningStrategy()); - assertFalse(rel.usesJoinTableJoiningStrategy()); + assertTrue(rel.strategyIsJoinColumn()); + assertFalse(rel.strategyIsJoinTable()); } public void testUpdatePredominantJoiningStrategy() throws Exception { @@ -295,35 +295,35 @@ public class EclipseLink2_0JavaManyToOneMappingTests assertNull(resourceAttribute.getAnnotation(JPA.JOIN_COLUMN)); assertNull(resourceAttribute.getAnnotation(JPA.JOIN_TABLE)); - assertTrue(rel.usesJoinColumnJoiningStrategy()); - assertFalse(rel.usesJoinTableJoiningStrategy()); + assertTrue(rel.strategyIsJoinColumn()); + assertFalse(rel.strategyIsJoinTable()); resourceAttribute.addAnnotation(JPA.JOIN_COLUMN); getJpaProject().synchronizeContextModel(); assertNotNull(resourceAttribute.getAnnotation(JPA.JOIN_COLUMN)); assertNull(resourceAttribute.getAnnotation(JPA.JOIN_TABLE)); - assertTrue(rel.usesJoinColumnJoiningStrategy()); - assertFalse(rel.usesJoinTableJoiningStrategy()); + assertTrue(rel.strategyIsJoinColumn()); + assertFalse(rel.strategyIsJoinTable()); resourceAttribute.addAnnotation(JPA.JOIN_TABLE); getJpaProject().synchronizeContextModel(); assertNotNull(resourceAttribute.getAnnotation(JPA.JOIN_COLUMN)); assertNotNull(resourceAttribute.getAnnotation(JPA.JOIN_TABLE)); - assertFalse(rel.usesJoinColumnJoiningStrategy()); - assertTrue(rel.usesJoinTableJoiningStrategy()); + assertFalse(rel.strategyIsJoinColumn()); + assertTrue(rel.strategyIsJoinTable()); resourceAttribute.removeAnnotation(JPA.JOIN_COLUMN); getJpaProject().synchronizeContextModel(); assertNull(resourceAttribute.getAnnotation(JPA.JOIN_COLUMN)); assertNotNull(resourceAttribute.getAnnotation(JPA.JOIN_TABLE)); - assertFalse(rel.usesJoinColumnJoiningStrategy()); - assertTrue(rel.usesJoinTableJoiningStrategy()); + assertFalse(rel.strategyIsJoinColumn()); + assertTrue(rel.strategyIsJoinTable()); resourceAttribute.removeAnnotation(JPA.JOIN_TABLE); getJpaProject().synchronizeContextModel(); assertNull(resourceAttribute.getAnnotation(JPA.JOIN_COLUMN)); assertNull(resourceAttribute.getAnnotation(JPA.JOIN_TABLE)); - assertTrue(rel.usesJoinColumnJoiningStrategy()); - assertFalse(rel.usesJoinTableJoiningStrategy()); + assertTrue(rel.strategyIsJoinColumn()); + assertFalse(rel.strategyIsJoinTable()); } } |