Search in sources :

Example 36 with DtDefinition

use of io.vertigo.dynamo.domain.metamodel.DtDefinition in project vertigo by KleeGroup.

the class OOMParserStereotypesTest method testStereotypeKeyConcept.

/**
 * Test du stereotype keyConcept
 */
@Test
public void testStereotypeKeyConcept() {
    final DtDefinition dtDefinitionCommand = getDtDefinition("DT_COMMAND");
    Assert.assertNotNull(dtDefinitionCommand);
    Assert.assertEquals(DtStereotype.KeyConcept, dtDefinitionCommand.getStereotype());
}
Also used : DtDefinition(io.vertigo.dynamo.domain.metamodel.DtDefinition) Test(org.junit.Test)

Example 37 with DtDefinition

use of io.vertigo.dynamo.domain.metamodel.DtDefinition in project vertigo by KleeGroup.

the class OOMParserStereotypesTest method testStereotypeMasterData.

/**
 * Test du stereotype MasterData
 */
@Test
public void testStereotypeMasterData() {
    final DtDefinition dtDefinitionCity = getDtDefinition("DT_CITY");
    Assert.assertNotNull(dtDefinitionCity);
    Assert.assertEquals(DtStereotype.MasterData, dtDefinitionCity.getStereotype());
    final DtDefinition dtDefinitionCommandType = getDtDefinition("DT_COMMAND_TYPE");
    Assert.assertNotNull(dtDefinitionCommandType);
    Assert.assertEquals(DtStereotype.StaticMasterData, dtDefinitionCommandType.getStereotype());
}
Also used : DtDefinition(io.vertigo.dynamo.domain.metamodel.DtDefinition) Test(org.junit.Test)

Example 38 with DtDefinition

use of io.vertigo.dynamo.domain.metamodel.DtDefinition in project vertigo by KleeGroup.

the class StoreManagerInitializer method init.

/**
 * {@inheritDoc}
 */
@Override
public void init() {
    final DtDefinition dtDefinition = DtObjectUtil.findDtDefinition(Car.class);
    storeManager.getDataStoreConfig().registerCacheable(dtDefinition, 3600, true, true);
}
Also used : DtDefinition(io.vertigo.dynamo.domain.metamodel.DtDefinition)

Example 39 with DtDefinition

use of io.vertigo.dynamo.domain.metamodel.DtDefinition in project vertigo by KleeGroup.

the class EAXmiTestParserIdentifiers method testIdentifiersVsPrimaryKey.

@Test
public void testIdentifiersVsPrimaryKey() {
    final DtDefinition loginDefinition = getDtDefinition("DT_LOGIN");
    Assert.assertTrue(loginDefinition.getIdField().isPresent());
}
Also used : DtDefinition(io.vertigo.dynamo.domain.metamodel.DtDefinition) Test(org.junit.Test)

Example 40 with DtDefinition

use of io.vertigo.dynamo.domain.metamodel.DtDefinition in project vertigo by KleeGroup.

the class JavaParserStereotypesTest method testStereotypeMasterData.

/**
 * Test du stereotype MasterData
 */
@Test
public void testStereotypeMasterData() {
    final DtDefinition dtDefinitionCity = getDtDefinition("DT_CITY");
    Assert.assertNotNull(dtDefinitionCity);
    Assert.assertEquals(DtStereotype.MasterData, dtDefinitionCity.getStereotype());
    final DtDefinition dtDefinitionCommandType = getDtDefinition("DT_COMMAND_TYPE");
    Assert.assertNotNull(dtDefinitionCommandType);
    Assert.assertEquals(DtStereotype.StaticMasterData, dtDefinitionCommandType.getStereotype());
}
Also used : DtDefinition(io.vertigo.dynamo.domain.metamodel.DtDefinition) Test(org.junit.Test)

Aggregations

DtDefinition (io.vertigo.dynamo.domain.metamodel.DtDefinition)91 DtField (io.vertigo.dynamo.domain.metamodel.DtField)29 Test (org.junit.Test)21 URI (io.vertigo.dynamo.domain.model.URI)18 List (java.util.List)17 ArrayList (java.util.ArrayList)16 Assertion (io.vertigo.lang.Assertion)12 Collectors (java.util.stream.Collectors)11 Home (io.vertigo.app.Home)10 Optional (java.util.Optional)10 Domain (io.vertigo.dynamo.domain.metamodel.Domain)9 Collections (java.util.Collections)8 DefinitionUtil (io.vertigo.core.definition.DefinitionUtil)7 DtObjectUtil (io.vertigo.dynamo.domain.util.DtObjectUtil)7 TaskDefinition (io.vertigo.dynamo.task.metamodel.TaskDefinition)7 Inject (javax.inject.Inject)7 Authorization (io.vertigo.account.authorization.metamodel.Authorization)6 SecuredEntity (io.vertigo.account.authorization.metamodel.SecuredEntity)6 Criterions (io.vertigo.dynamo.criteria.Criterions)6 DefinitionSpace (io.vertigo.core.definition.DefinitionSpace)5