e.printStackTrace();
}
System.out.println(" in " + (System.currentTimeMillis() - ms) + " ms");
- String type = testProps.getProperty("type");
+ clearCaches();
+ }
+
+ public static void clearCaches() throws IOException {
ObjectCache.clearAllCaches();
- if (type.equals("local")) {
- URL u = new URL("https://" + getServerName() + "/manage");
- u.openConnection().getHeaderField("Location");
- }
+ String type = testProps.getProperty("type");
+ URL u = new URL("https://" + getServerName() + "/manage");
+ u.openConnection().getHeaderField("Location");
}
private static Properties generateMainProps() {
Properties mainProps = new Properties();
+ mainProps.setProperty("testrunner", "true");
mainProps.setProperty("host", "127.0.0.1");
mainProps.setProperty("name.secure", testProps.getProperty("name.secure"));
mainProps.setProperty("name.www", testProps.getProperty("name.www"));