if (myHTTPConx.getResponseCode() != 200) {
fail("Jetty is not accepting requests");
}
for (int index = 0; index < SOURCE_FILES.length; index++) {
final PairtreeObject ptObj = ptRoot.getObject(ID[index]);
final File jp2 = new File(ptObj, PairtreeUtils.encodeID(ID[index]));
if (ptObj.exists()) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Removing pre-existing tile cache for test image");
}
if (!FileUtils.delete(ptObj)) {
fail("Unable to delete test image's tile cache: " + ptObj);
} else if (!ptObj.mkdirs()) {
fail("Unable to create test image's pairtree directory: " + ptObj);
}
}
if (LOGGER.isDebugEnabled()) {