use of org.gluu.oxtrust.model.scim2.Validations in project atlasmap by atlasmap.
the class AtlasCoreValidationTest method testJavaToXml.
@Test
public void testJavaToXml() throws AtlasException {
assertNotNull(context);
assertNotNull(session);
context.processValidation(session);
Validations validations = session.getValidations();
assertNotNull(validations);
assertNotNull(validations.getValidation());
assertTrue(validations.getValidation().isEmpty());
}
use of org.gluu.oxtrust.model.scim2.Validations in project atlasmap by atlasmap.
the class AtlasCoreValidationTest method testMappingNameNull.
@Test
public void testMappingNameNull() throws AtlasException {
assertNotNull(context);
assertNotNull(session);
context.processValidation(session);
Validations validations = session.getValidations();
assertNotNull(validations);
assertNotNull(validations.getValidation());
assertFalse(validations.getValidation().isEmpty());
boolean found = false;
for (Validation v : validations.getValidation()) {
if ("Mapping name must not be null nor empty".equals(v.getMessage())) {
found = true;
assertEquals(ValidationStatus.ERROR, v.getStatus());
assertEquals(ValidationScope.ALL, v.getScope());
}
System.out.println(AtlasValidationTestHelper.validationToString(v));
}
assertTrue(found);
}
use of org.gluu.oxtrust.model.scim2.Validations in project atlasmap by atlasmap.
the class AtlasCoreValidationTest method testXmlToJson.
@Test
public void testXmlToJson() throws AtlasException {
assertNotNull(context);
assertNotNull(session);
context.processValidation(session);
Validations validations = session.getValidations();
assertNotNull(validations);
assertNotNull(validations.getValidation());
assertTrue(validations.getValidation().isEmpty());
}
use of org.gluu.oxtrust.model.scim2.Validations in project atlasmap by atlasmap.
the class AtlasCoreValidationTest method testJsonToXml.
@Test
public void testJsonToXml() throws AtlasException {
assertNotNull(context);
assertNotNull(session);
context.processValidation(session);
Validations validations = session.getValidations();
assertNotNull(validations);
assertNotNull(validations.getValidation());
assertTrue(validations.getValidation().isEmpty());
}
use of org.gluu.oxtrust.model.scim2.Validations in project atlasmap by atlasmap.
the class AtlasCoreValidationTest method testXmlToJava.
@Test
public void testXmlToJava() throws AtlasException {
assertNotNull(context);
assertNotNull(session);
context.processValidation(session);
Validations validations = session.getValidations();
assertNotNull(validations);
assertNotNull(validations.getValidation());
assertTrue(validations.getValidation().isEmpty());
}
Aggregations