Package org.eclipse.egit.ui.common.CommitDialogTester

Examples of org.eclipse.egit.ui.common.CommitDialogTester.NoFilesToCommitPopup


    assertTrue(dotProject.delete());
  }

  @Test
  public void testOpenCommitWithoutChanged() throws Exception {
    NoFilesToCommitPopup popup = CommitDialogTester
        .openCommitDialogExpectNoFilesToCommit(PROJ1);
    popup.cancelPopup();
  }
View Full Code Here


    commitDialogTester.setCommitter(TestUtil.TESTCOMMITTER);
    commitDialogTester.setCommitMessage("The new commit");
    commitDialogTester.commit();
    TestUtil.checkHeadCommit(lookupRepository(repositoryFile),
        TestUtil.TESTAUTHOR, TestUtil.TESTCOMMITTER, "The new commit");
    NoFilesToCommitPopup popup = CommitDialogTester
        .openCommitDialogExpectNoFilesToCommit(PROJ1);
    popup.cancelPopup();
  }
View Full Code Here

    String commitMessage = commitDialogTester.getCommitMessage();
    assertTrue(commitMessage.indexOf("Change-Id") > 0);
    String newCommitMessage = "Change to be amended \n\n" + commitMessage;
    commitDialogTester.setCommitMessage(newCommitMessage);
    commitDialogTester.commit();
    NoFilesToCommitPopup noFilesToCommitPopup = CommitDialogTester
        .openCommitDialogExpectNoFilesToCommit(PROJ1);
    repo.getConfig().setBoolean(ConfigConstants.CONFIG_GERRIT_SECTION,
        null, ConfigConstants.CONFIG_KEY_CREATECHANGEID, false);
    commitDialogTester = noFilesToCommitPopup.confirmPopup();
    assertTrue(commitDialogTester.getCommitMessage().indexOf("Change-Id") > 0);
  }
View Full Code Here

  public void testLaunchedWithAmend() throws Exception {
    Repository repository = lookupRepository(repositoryFile);
    RevCommit oldHeadCommit = TestUtil.getHeadCommit(repository);
    commitOneFileChange("Again another Change");
    ObjectId headCommitId = TestUtil.getHeadCommit(repository).getId();
    NoFilesToCommitPopup noFilesToCommitPopup = CommitDialogTester
        .openCommitDialogExpectNoFilesToCommit(PROJ1);
    CommitDialogTester commitDialogTester = noFilesToCommitPopup.confirmPopup();
    assertTrue(commitDialogTester.getCommitMessage().indexOf("Change-Id") > 0);
    assertTrue(commitDialogTester.getCommitMessage().indexOf("Signed-off-by") > 0);
    assertTrue(commitDialogTester.getAmend());
    assertTrue(commitDialogTester.getSignedOff());
    assertTrue(commitDialogTester.getInsertChangeId());
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.common.CommitDialogTester.NoFilesToCommitPopup

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.