in src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostServletOrderTest.java [185:207]
private void verifyOrder(String parentUrl, String[] names) throws IOException {
// check that nodes appear in creation order in their parent's list of children
final String content = getContent(parentUrl + ".1.json", CONTENT_TYPE_JSON);
String expected = "";
for (String n : names) {
expected += n + ",";
}
// assertJavascript(expected, content, TEST_SCRIPT);
try {
String actual = "";
JsonObject obj = JsonUtil.parseObject(content);
for (String name : obj.keySet()) {
Object o = obj.get(name);
if (o instanceof JsonObject) {
actual += name + ",";
}
}
assertEquals(expected, actual);
} catch (JsonException e) {
throw new IOException(e.toString());
}
}