use of io.vertigo.dynamo.domain.metamodel.association.AssociationNNDefinition in project vertigo by KleeGroup.
the class OOMParserAATest method testAssoctationAnBn.
/**
* Test d'une relation An - Bn.
*/
@Test
public void testAssoctationAnBn() {
final AssociationNNDefinition association = getAssociationNNDefinition("ANN_CHI_CHI_9");
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeA().isMultiple());
Assert.assertFalse(association.getAssociationNodeA().isNotNull());
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeB().isMultiple());
Assert.assertFalse(association.getAssociationNodeB().isNotNull());
Assert.assertEquals("R9A", association.getAssociationNodeA().getRole());
Assert.assertEquals("R9B", association.getAssociationNodeB().getRole());
Assert.assertFalse(association.getAssociationNodeA().isNavigable());
Assert.assertFalse(association.getAssociationNodeB().isNavigable());
}
use of io.vertigo.dynamo.domain.metamodel.association.AssociationNNDefinition in project vertigo by KleeGroup.
the class OOMParserTest method testAssoctationAnvBnv.
/**
* Test d'une relation Anv - Bnv.
*/
@Test
public void testAssoctationAnvBnv() {
final AssociationNNDefinition association = getAssociationNNDefinition("ANN_CHA_CHI_8");
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeA().isMultiple());
Assert.assertFalse(association.getAssociationNodeA().isNotNull());
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeB().isMultiple());
Assert.assertFalse(association.getAssociationNodeB().isNotNull());
Assert.assertEquals("R8A", association.getAssociationNodeA().getRole());
Assert.assertEquals("R8B", association.getAssociationNodeB().getRole());
Assert.assertTrue(association.getAssociationNodeA().isNavigable());
Assert.assertTrue(association.getAssociationNodeB().isNavigable());
}
use of io.vertigo.dynamo.domain.metamodel.association.AssociationNNDefinition in project vertigo by KleeGroup.
the class EAXmiTestParser method testAssoctationAnvBn.
/**
* Test d'une relation Anv - Bn.
*/
@Test
public void testAssoctationAnvBn() {
final AssociationNNDefinition association = getAssociationNNDefinition("ANN_CHA_CHI_10");
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeA().isMultiple());
Assert.assertFalse(association.getAssociationNodeA().isNotNull());
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeB().isMultiple());
Assert.assertFalse(association.getAssociationNodeB().isNotNull());
Assert.assertEquals("R10A", association.getAssociationNodeA().getRole());
Assert.assertEquals("R10B", association.getAssociationNodeB().getRole());
Assert.assertTrue(association.getAssociationNodeA().isNavigable());
Assert.assertFalse(association.getAssociationNodeB().isNavigable());
}
use of io.vertigo.dynamo.domain.metamodel.association.AssociationNNDefinition in project vertigo by KleeGroup.
the class EAXmiTestParser method testAssoctationAnvBnv.
/**
* Test d'une relation Anv - Bnv.
*/
@Test
public void testAssoctationAnvBnv() {
final AssociationNNDefinition association = getAssociationNNDefinition("ANN_CHA_CHI_8");
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeA().isMultiple());
Assert.assertFalse(association.getAssociationNodeA().isNotNull());
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeB().isMultiple());
Assert.assertFalse(association.getAssociationNodeB().isNotNull());
Assert.assertEquals("R8A", association.getAssociationNodeA().getRole());
Assert.assertEquals("R8B", association.getAssociationNodeB().getRole());
Assert.assertTrue(association.getAssociationNodeA().isNavigable());
Assert.assertTrue(association.getAssociationNodeB().isNavigable());
}
use of io.vertigo.dynamo.domain.metamodel.association.AssociationNNDefinition in project vertigo by KleeGroup.
the class EAXmiTestParserAA method testAssoctationAnvBnv.
/**
* Test d'une relation Anv - Bnv.
*/
@Test
public void testAssoctationAnvBnv() {
final AssociationNNDefinition association = getAssociationNNDefinition("ANN_CHI_CHI_8");
/* "0..1" */
Assert.assertTrue(association.getAssociationNodeA().isMultiple());
Assert.assertFalse(association.getAssociationNodeA().isNotNull());
/* "0..*" */
Assert.assertTrue(association.getAssociationNodeB().isMultiple());
Assert.assertFalse(association.getAssociationNodeB().isNotNull());
Assert.assertEquals("R8A", association.getAssociationNodeA().getRole());
Assert.assertEquals("R8B", association.getAssociationNodeB().getRole());
Assert.assertTrue(association.getAssociationNodeA().isNavigable());
Assert.assertTrue(association.getAssociationNodeB().isNavigable());
}
Aggregations