use of com.consol.citrus.validation.json.JsonMessageValidationContext in project fabric8-maven-plugin by fabric8io.
the class Verify method verifyResourceDescriptors.
public static void verifyResourceDescriptors(File actualPath, File expectedPath, boolean strict) throws IOException, ParseException {
String actualText = readFile(actualPath);
String expectedText = readFile(expectedPath);
JsonTextMessageValidator validator = new JsonTextMessageValidator();
validator.setStrict(strict);
DocumentContext actualContext = JsonPath.parse(actualText);
validator.validateJson(newMessage(actualText), newMessage(expectedText), new JsonMessageValidationContext(), createTestContext(), actualContext);
}
Aggregations