Search in sources :

Example 6 with AssociationNNDefinition

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());
}
Also used : AssociationNNDefinition(io.vertigo.dynamo.domain.metamodel.association.AssociationNNDefinition) Test(org.junit.Test)

Example 7 with AssociationNNDefinition

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());
}
Also used : AssociationNNDefinition(io.vertigo.dynamo.domain.metamodel.association.AssociationNNDefinition) Test(org.junit.Test)

Example 8 with AssociationNNDefinition

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());
}
Also used : AssociationNNDefinition(io.vertigo.dynamo.domain.metamodel.association.AssociationNNDefinition) Test(org.junit.Test)

Example 9 with AssociationNNDefinition

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());
}
Also used : AssociationNNDefinition(io.vertigo.dynamo.domain.metamodel.association.AssociationNNDefinition) Test(org.junit.Test)

Example 10 with AssociationNNDefinition

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());
}
Also used : AssociationNNDefinition(io.vertigo.dynamo.domain.metamodel.association.AssociationNNDefinition) Test(org.junit.Test)

Aggregations

AssociationNNDefinition (io.vertigo.dynamo.domain.metamodel.association.AssociationNNDefinition)25 Test (org.junit.Test)16 DtDefinition (io.vertigo.dynamo.domain.metamodel.DtDefinition)8 AssociationSimpleDefinition (io.vertigo.dynamo.domain.metamodel.association.AssociationSimpleDefinition)5 DtField (io.vertigo.dynamo.domain.metamodel.DtField)4 URI (io.vertigo.dynamo.domain.model.URI)4 AccountMapperHelper (io.vertigo.account.impl.account.AccountMapperHelper)3 AssociationDefinition (io.vertigo.dynamo.domain.metamodel.association.AssociationDefinition)3 AssociationNode (io.vertigo.dynamo.domain.metamodel.association.AssociationNode)3 DtListURIForNNAssociation (io.vertigo.dynamo.domain.metamodel.association.DtListURIForNNAssociation)3 DtList (io.vertigo.dynamo.domain.model.DtList)3 Account (io.vertigo.account.account.Account)2 AccountGroup (io.vertigo.account.account.AccountGroup)2 AccountStorePlugin (io.vertigo.account.impl.account.AccountStorePlugin)2 AbstractAccountStorePlugin (io.vertigo.account.plugins.account.store.AbstractAccountStorePlugin)2 Home (io.vertigo.app.Home)2 Criteria (io.vertigo.dynamo.criteria.Criteria)2 Criterions (io.vertigo.dynamo.criteria.Criterions)2 DtListURIForSimpleAssociation (io.vertigo.dynamo.domain.metamodel.association.DtListURIForSimpleAssociation)2 DtListURI (io.vertigo.dynamo.domain.model.DtListURI)2