use of io.vertigo.dynamo.domain.metamodel.association.AssociationSimpleDefinition in project vertigo by KleeGroup.
the class EAXmiTestParser method testAssoctationSimpleA1vBn.
/**
* Test d'une relation A1v - Bn.
*/
@Test
public void testAssoctationSimpleA1vBn() {
final AssociationSimpleDefinition association = getAssociationSimpleDefinition("A_CHA_CHI_3");
/* "0..1" */
Assert.assertFalse(association.getAssociationNodeA().isMultiple());
Assert.assertFalse(association.getAssociationNodeA().isNotNull());
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeB().isMultiple());
Assert.assertFalse(association.getAssociationNodeB().isNotNull());
Assert.assertEquals("R3A", association.getAssociationNodeA().getRole());
Assert.assertEquals("R3B", association.getAssociationNodeB().getRole());
Assert.assertTrue(association.getAssociationNodeA().isNavigable());
Assert.assertFalse(association.getAssociationNodeB().isNavigable());
}
use of io.vertigo.dynamo.domain.metamodel.association.AssociationSimpleDefinition in project vertigo by KleeGroup.
the class EAXmiTestParser method testAssoctationAnvB1v.
/**
* Test d'une relation Anv - B1v.
*/
@Test
public void testAssoctationAnvB1v() {
final AssociationSimpleDefinition association = getAssociationSimpleDefinition("A_CHA_CHI_6");
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeA().isMultiple());
Assert.assertFalse(association.getAssociationNodeA().isNotNull());
/* "0..1" */
Assert.assertFalse(association.getAssociationNodeB().isMultiple());
Assert.assertFalse(association.getAssociationNodeB().isNotNull());
Assert.assertEquals("R6A", association.getAssociationNodeA().getRole());
Assert.assertEquals("R6B", association.getAssociationNodeB().getRole());
Assert.assertTrue(association.getAssociationNodeA().isNavigable());
Assert.assertTrue(association.getAssociationNodeB().isNavigable());
}
use of io.vertigo.dynamo.domain.metamodel.association.AssociationSimpleDefinition in project vertigo by KleeGroup.
the class OOMParserAATest method testAssoctationAnvB1.
/**
* Test d'une relation Anv - B1.
*/
@Test
public void testAssoctationAnvB1() {
final AssociationSimpleDefinition association = getAssociationSimpleDefinition("A_CHI_CHI_5");
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeA().isMultiple());
Assert.assertFalse(association.getAssociationNodeA().isNotNull());
/* "0..*" */
Assert.assertFalse(association.getAssociationNodeB().isMultiple());
Assert.assertFalse(association.getAssociationNodeB().isNotNull());
Assert.assertEquals("R5A", association.getAssociationNodeA().getRole());
Assert.assertEquals("R5B", association.getAssociationNodeB().getRole());
Assert.assertTrue(association.getAssociationNodeA().isNavigable());
Assert.assertFalse(association.getAssociationNodeB().isNavigable());
}
use of io.vertigo.dynamo.domain.metamodel.association.AssociationSimpleDefinition in project vertigo by KleeGroup.
the class OOMParserAATest method testAssoctationA1vBnv.
/**
* Test d'une relation A1v - Bnv.
*/
@Test
public void testAssoctationA1vBnv() {
final AssociationSimpleDefinition association = getAssociationSimpleDefinition("A_CHI_CHI_2");
/* "0..1" */
Assert.assertFalse(association.getAssociationNodeA().isMultiple());
Assert.assertFalse(association.getAssociationNodeA().isNotNull());
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeB().isMultiple());
Assert.assertFalse(association.getAssociationNodeB().isNotNull());
Assert.assertEquals("R2A", association.getAssociationNodeA().getRole());
Assert.assertEquals("R2B", association.getAssociationNodeB().getRole());
Assert.assertTrue(association.getAssociationNodeA().isNavigable());
Assert.assertTrue(association.getAssociationNodeB().isNavigable());
}
use of io.vertigo.dynamo.domain.metamodel.association.AssociationSimpleDefinition in project vertigo by KleeGroup.
the class OOMParserAATest method testAssoctationAnvB1v.
/**
* Test d'une relation Anv - B1v.
*/
@Test
public void testAssoctationAnvB1v() {
final AssociationSimpleDefinition association = getAssociationSimpleDefinition("A_CHI_CHI_6");
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeA().isMultiple());
Assert.assertFalse(association.getAssociationNodeA().isNotNull());
/* "0..1" */
Assert.assertFalse(association.getAssociationNodeB().isMultiple());
Assert.assertFalse(association.getAssociationNodeB().isNotNull());
Assert.assertEquals("R6A", association.getAssociationNodeA().getRole());
Assert.assertEquals("R6B", association.getAssociationNodeB().getRole());
Assert.assertTrue(association.getAssociationNodeA().isNavigable());
Assert.assertTrue(association.getAssociationNodeB().isNavigable());
}
Aggregations