Package org.eclipse.egit.core.test

Examples of org.eclipse.egit.core.test.TestRepository


  @Before
  public void setUp() throws Exception {
    super.setUp();
    gitDir = new File(project.getProject()
        .getLocationURI().getPath(), Constants.DOT_GIT);
    testRepository = new TestRepository(gitDir);
    testRepository.connect(project.getProject());
  }
View Full Code Here


  private TestRepository testRepository;

  @Before
  public void setUp() throws Exception {
    super.setUp();
    testRepository = new TestRepository(gitDir);
    testRepository.connect(project.getProject());
  }
View Full Code Here

  @Before
  public void setUp() throws Exception {
    super.setUp();
    gitDir = new File(project.getProject().getLocationURI().getPath(),
        Constants.DOT_GIT);
    testRepository = new TestRepository(gitDir);
    testRepository.connect(project.getProject());
    testRepository.createInitialCommit("initial");

    File file = testRepository.createFile(project.getProject(), "file-1");
    commit1 = testRepository.addAndCommit(project.getProject(), file,
View Full Code Here

  @Before
  public void setUp() throws Exception {
    super.setUp();

    iProject = project.project;
    testRepo = new TestRepository(gitDir);
    testRepo.connect(iProject);
    repo = RepositoryMapping.getMapping(iProject).getRepository();

    // make initial commit
    new Git(repo).commit().setAuthor("JUnit", "junit@jgit.org")
View Full Code Here

  Git git;

  @Before
  public void setUp() throws Exception {
    super.setUp();
    testRepository = new TestRepository(gitDir);
    repository = testRepository.getRepository();
    // create first commit containing a dummy file
    testRepository
        .createInitialCommit("testRebaseOperation\n\nfirst commit\n");
    git = new Git(repository);
View Full Code Here

  @Before
  public void setUp() throws Exception {
    super.setUp();
    gitDir = new File(project.getProject().getLocationURI().getPath(),
        Constants.DOT_GIT);
    testRepository = new TestRepository(gitDir);
    testRepository.connect(project.getProject());
    plan = RebaseInteractivePlan.getPlan(testRepository.getRepository());
    toDoElements = new ArrayList<PlanElement>();
    moveHelper = new RebaseInteractivePlan.MoveHelper(toDoElements, plan);
  }
View Full Code Here

  @Before
  public void setUp() throws Exception {

    workdir = testUtils.createTempDir("Repository1");

    repository1 = new TestRepository(new File(workdir, Constants.DOT_GIT));

    project = testUtils.createProjectInLocalFileSystem(workdir,
        projectName);
    testUtils.addFileToProject(project, "folder1/file1.txt", "Hello world");
View Full Code Here

  private AtomicReference<IndexDiffData> indexDiffDataResult;

  @Before
  public void setUp() throws Exception {
    super.setUp();
    testRepository = new TestRepository(gitDir);
    repository = testRepository.getRepository();
  }
View Full Code Here

  Repository repository;

  @Before
  public void setUp() throws Exception {
    super.setUp();
    testRepository = new TestRepository(gitDir);
    repository = testRepository.getRepository();
  }
View Full Code Here

  @Before
  public void setUp() throws Exception {
    super.setUp();

    iProject = project.project;
    testRepo = new TestRepository(gitDir);
    testRepo.connect(iProject);
    repo = RepositoryMapping.getMapping(iProject).getRepository();

    // make initial commit
    new Git(repo).commit().setAuthor("JUnit", "junit@jgit.org")
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.test.TestRepository

Copyright © 2018 www.massapicom. 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.