]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/testUtils/ManagedTest.java
ADD: Delete affiliations + testcase
[gigi.git] / tests / org / cacert / gigi / testUtils / ManagedTest.java
index a65d3f243f655acb20d3abddbc18fd780a2bc54d..2303ef70a3dcb8b7b96eb61535e2d1f32e9ca186 100644 (file)
@@ -155,8 +155,12 @@ public class ManagedTest extends ConfiguredTest {
             e.printStackTrace();
         }
         System.out.println(" in " + (System.currentTimeMillis() - ms) + " ms");
-        String type = testProps.getProperty("type");
+        clearCaches();
+    }
+
+    public static void clearCaches() throws IOException {
         ObjectCache.clearAllCaches();
+        String type = testProps.getProperty("type");
         if (type.equals("local")) {
             URL u = new URL("https://" + getServerName() + "/manage");
             u.openConnection().getHeaderField("Location");