private void emptyStorage() throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchFieldException { File f = getStorageRootFile(); BugtrackingUtil.deleteRecursively(f); Field field = IssueStorage.class.getDeclaredField("storage"); field.setAccessible(true); field.set(IssueStorage.getInstance(), f); }
@Override protected void setUp() throws Exception { super.setUp(); MockLookup.setLayersAndInstances(); BugtrackingUtil.getBugtrackingConnectors(); // ensure conector System.setProperty("netbeans.user", getWorkDir().getAbsolutePath()); cleanupStoredIssues(); }