Search in sources :

Example 1 with ConstraintDefinition

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

the class OOMEnvironmentManagerTest method testConstraint.

@Test
public void testConstraint() {
    final DefinitionSpace definitionSpace = getApp().getDefinitionSpace();
    final ConstraintDefinition constraint = definitionSpace.resolve("CK_TELEPHONE", ConstraintDefinition.class);
    Assert.assertEquals(DtProperty.REGEX, constraint.getProperty());
}
Also used : DefinitionSpace(io.vertigo.core.definition.DefinitionSpace) ConstraintDefinition(io.vertigo.dynamo.domain.metamodel.ConstraintDefinition) Test(org.junit.Test)

Example 2 with ConstraintDefinition

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

the class EAXmiEnvironmentManagerTest method testConstraint.

@Test
public void testConstraint() {
    final ConstraintDefinition constraint = definitionSpace.resolve("CK_TELEPHONE", ConstraintDefinition.class);
    Assert.assertEquals(DtProperty.REGEX, constraint.getProperty());
}
Also used : ConstraintDefinition(io.vertigo.dynamo.domain.metamodel.ConstraintDefinition) Test(org.junit.Test)

Aggregations

ConstraintDefinition (io.vertigo.dynamo.domain.metamodel.ConstraintDefinition)2 Test (org.junit.Test)2 DefinitionSpace (io.vertigo.core.definition.DefinitionSpace)1