assertNotNull(t);
}
@Test
public void issueSYNCOPE323() {
VirtualSchemaTO actual = schemaService.read(AttributableType.MEMBERSHIP, SchemaType.VIRTUAL, "mvirtualdata");
assertNotNull(actual);
try {
createSchema(AttributableType.MEMBERSHIP, SchemaType.VIRTUAL, actual);
fail();
} catch (SyncopeClientCompositeErrorException scce) {
assertEquals(HttpStatus.CONFLICT, scce.getStatusCode());
assertTrue(scce.hasException(SyncopeClientExceptionType.EntityExists));
}
actual.setName(null);
try {
createSchema(AttributableType.MEMBERSHIP, SchemaType.VIRTUAL, actual);
fail();
} catch (SyncopeClientCompositeErrorException scce) {
assertEquals(HttpStatus.BAD_REQUEST, scce.getStatusCode());