Package org.eclipse.egit.ui.common

Examples of org.eclipse.egit.ui.common.StagingViewTester.commit()


    stagingViewTester.stageFile(FILE1_PATH);

    stagingViewTester.setAuthor(TestUtil.TESTAUTHOR);
    stagingViewTester.setCommitter(TestUtil.TESTCOMMITTER);
    stagingViewTester.setCommitMessage("The new commit");
    stagingViewTester.commit();
    TestUtil.checkHeadCommit(repository, TestUtil.TESTAUTHOR,
        TestUtil.TESTCOMMITTER, "The new commit");
  }

  @Test
View Full Code Here


    assertTrue(stagingViewTester.getCommitMessage().indexOf("Change-Id") > 0);
    assertTrue(stagingViewTester.getCommitMessage()
        .indexOf("Signed-off-by") > 0);
    assertTrue(stagingViewTester.getSignedOff());
    assertTrue(stagingViewTester.getInsertChangeId());
    stagingViewTester.commit();
    headCommit = TestUtil.getHeadCommit(repository);
    if (headCommitId.equals(headCommit.getId()))
      fail("There is no new commit");
    assertEquals(oldHeadCommit, headCommit.getParent(0));
    assertTrue(headCommit.getFullMessage().indexOf(changeId) > 0);
View Full Code Here

    assertEquals(RepositoryState.MERGING_RESOLVED,
        repository.getRepositoryState());
    String expectedMessage = "Merge branch 'side'";
    assertThat(stagingView.getCommitMessage(), startsWith(expectedMessage));

    stagingView.commit();
    assertEquals(RepositoryState.SAFE, repository.getRepositoryState());

    assertEquals(expectedMessage, TestUtil.getHeadCommit(repository)
        .getShortMessage());
  }
View Full Code Here

    stagingViewTester.setInsertChangeId(true);
    stagingViewTester.setSignedOff(true);
    String commitMessage = stagingViewTester.getCommitMessage();
    assertTrue(commitMessage.indexOf("Change-Id") > 0);
    assertTrue(commitMessage.indexOf("Signed-off-by") > 0);
    stagingViewTester.commit();
  }

  private void setContent(String content) throws Exception {
    setTestFileContent(content);
    TestUtil.joinJobs(JobFamilies.INDEX_DIFF_CACHE_UPDATE);
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.