예제 #1
0
 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);
 }
예제 #2
0
  @Override
  protected void setUp() throws Exception {
    super.setUp();

    MockLookup.setLayersAndInstances();
    BugtrackingUtil.getBugtrackingConnectors(); // ensure conector

    System.setProperty("netbeans.user", getWorkDir().getAbsolutePath());
    cleanupStoredIssues();
  }