Package org.eclipse.egit.core.test

Examples of org.eclipse.egit.core.test.TestProject.dispose()


      IgnoreOperation operation = executeIgnore(ignoreme.getLocation());
      String content = nested.getFileContent("please/.gitignore");
      assertEquals("/ignoreme\n", content);
      assertFalse(operation.isGitignoreOutsideWSChanged());
    } finally {
      nested.dispose();
    }
  }

  private IgnoreOperation executeIgnore(IPath... paths) throws Exception {
    final IgnoreOperation operation = new IgnoreOperation(Arrays.asList(paths));
View Full Code Here


      assertEquals(0, nonExistProject.length);

      IProject p = projectsContaining[0];
      assertEquals("Project-1", p.getDescription().getName());
    } finally {
      prj2.dispose();
    }
  }

  @Test
  public void testGetNestedProjectsContains() throws Exception {
View Full Code Here

      assertEquals(0, nonExistProject.length);

      IProject p = projectsContaining[0];
      assertEquals("Project-1", p.getDescription().getName());
    } finally {
      prj2.dispose();
    }
  }

  @Test
  public void testFindContainer() throws Exception {
View Full Code Here

    } finally {
      DisconnectProviderOperation disconnectOp = new DisconnectProviderOperation(Collections.singletonList(proj));
      disconnectOp.execute(progress);
      Activator.getDefault().getRepositoryUtil().removeDir(singleProjectGitDir);
      singleProjectRepo.close();
      singleRepoProject.dispose();
    }
  }

  @Test
  public void testFailNotFound() throws Exception {
View Full Code Here

      IResource actualProject = roots[0];
      assertEquals(this.project.project, actualProject);
      IResource actualProject1 = roots[1];
      assertEquals(secondIProject, actualProject1);
    } finally {
      secondProject.dispose();
    }
  }

  /**
   * Checks that getResourceVariant will not throw NPE for null argument. This
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.