private void testInverseTransform(String caseFile, String expectedFile) throws IOException { Map<String, Object> inverse = parser.inverseTransform(readJsonGson("parts/stages/" + caseFile + ".json")); JsonObject actual = parser.transform(inverse); assertEquals((readJsonObject("parts/stages/" + expectedFile + ".json")), actual); } }
private void testInverseTransform(String caseFile, String expectedFile) throws IOException { Map<String, Object> inverse = parser.inverseTransform(readJsonGson("parts/tasks/" + caseFile + ".json")); JsonObject actual = parser.transform(inverse); assertEquals((readJsonObject("parts/tasks/" + expectedFile + ".json")), actual); } }
private void testInverseTransform(String caseFile, String expectedFile) throws IOException { Map<String, Object> inverse = parser.inverseTransform(readJsonGson("parts/jobs/" + caseFile + ".json")); assertYamlEquivalent(loadString("parts/jobs/" + expectedFile + ".yaml"), YamlUtils.dump(inverse)); } }
private void testInverseTransform(String caseFile, String expectedFile) throws IOException { String expectedObject = loadString("parts/" + expectedFile + ".yaml"); Map<String, Object> actual = parser.inverseTransform(readJsonGson("parts/" + caseFile + ".json")); assertYamlEquivalent(expectedObject, YamlUtils.dump(actual)); } }
private void testInverseTransform(String caseFile, String expectedFile) throws IOException { Map<String, Object> actual = parser.inverseTransform(readJsonGson("parts/materials/" + caseFile + ".json")); JsonObject transform = parser.transform(actual); assertEquals((readJsonObject("parts/materials/" + expectedFile + ".json")), transform); } }