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");
}
Aggregations