Search in sources :

Example 1 with RelationshipTypeName

use of com.enonic.xp.schema.relationship.RelationshipTypeName in project xp by enonic.

the class ApplicationRelativeResolverTest method toRelationshipTypeName.

@Test
public void toRelationshipTypeName() {
    final ApplicationRelativeResolver resolver = new ApplicationRelativeResolver(ApplicationKey.from("aaa"));
    RelationshipTypeName relationshipTypeName = resolver.toRelationshipTypeName("bbb");
    assertEquals(relationshipTypeName.getLocalName(), "bbb");
    relationshipTypeName = resolver.toRelationshipTypeName("ccc:ddd");
    assertEquals(relationshipTypeName.getLocalName(), "ddd");
}
Also used : RelationshipTypeName(com.enonic.xp.schema.relationship.RelationshipTypeName) Test(org.junit.jupiter.api.Test)

Aggregations

RelationshipTypeName (com.enonic.xp.schema.relationship.RelationshipTypeName)1 Test (org.junit.jupiter.api.Test)1