Search in sources :

Example 6 with RelationshipTypeTO

use of org.apache.syncope.common.lib.to.RelationshipTypeTO in project syncope by apache.

the class RelationshipTypeITCase method read.

@Test
public void read() {
    RelationshipTypeTO otherType = relationshipTypeService.read("inclusion");
    assertNotNull(otherType);
    assertEquals("inclusion", otherType.getKey());
}
Also used : RelationshipTypeTO(org.apache.syncope.common.lib.to.RelationshipTypeTO) Test(org.junit.jupiter.api.Test)

Aggregations

RelationshipTypeTO (org.apache.syncope.common.lib.to.RelationshipTypeTO)6 Test (org.junit.jupiter.api.Test)3 SyncopeClientException (org.apache.syncope.common.lib.SyncopeClientException)2 URI (java.net.URI)1 Response (javax.ws.rs.core.Response)1 RelationshipTypeService (org.apache.syncope.common.rest.api.service.RelationshipTypeService)1 NotFoundException (org.apache.syncope.core.persistence.api.dao.NotFoundException)1 RelationshipType (org.apache.syncope.core.persistence.api.entity.RelationshipType)1 PreAuthorize (org.springframework.security.access.prepost.PreAuthorize)1