Package org.eclipse.egit.ui.common

Examples of org.eclipse.egit.ui.common.RepoRemoteBranchesPage


        .getRoot().getLocation().toFile(), "test1");

    importWizard.openWizard();
    RepoPropertiesPage propertiesPage = importWizard.openRepoPropertiesPage();

    RepoRemoteBranchesPage remoteBranches = propertiesPage
        .nextToRemoteBranches(r.getUri());

    cloneRepo(destRepo, remoteBranches);
    bot.button("Cancel").click();
  }
View Full Code Here


  @Test
  public void clonedRepositoryShouldExistOnFileSystem() throws Exception {
    importWizard.openWizard();
    RepoPropertiesPage repoProperties = importWizard.openRepoPropertiesPage();
    RepoRemoteBranchesPage remoteBranches = repoProperties
        .nextToRemoteBranches(r.getUri());
    remoteBranches.assertRemoteBranches(SampleTestRepository.FIX, Constants.MASTER);
    WorkingCopyPage workingCopy = remoteBranches.nextToWorkingCopy();
    workingCopy.assertWorkingCopyExists();
    bot.button("Cancel").click();
  }
View Full Code Here

    destRepo = new File(ResourcesPlugin.getWorkspace()
        .getRoot().getLocation().toFile(), "test2");

    importWizard.openWizard();
    RepoPropertiesPage repoProperties = importWizard.openRepoPropertiesPage();
    RepoRemoteBranchesPage remoteBranches = repoProperties
        .nextToRemoteBranches(r.getUri());
    remoteBranches.deselectAllBranches();
    remoteBranches
        .assertErrorMessage("At least one branch must be selected.");
    remoteBranches.assertNextIsDisabled();

    remoteBranches.selectBranches(SampleTestRepository.FIX);
    remoteBranches.assertNextIsEnabled();

    WorkingCopyPage workingCopy = remoteBranches.nextToWorkingCopy();
    workingCopy.setDirectory(destRepo.toString());
    workingCopy.assertBranch(SampleTestRepository.FIX);
    workingCopy.setRemoteName("src");
    workingCopy.waitForCreate();
View Full Code Here

  @Ignore
  @Test
  public void invalidHostnameFreezesDialog() throws Exception {
    importWizard.openWizard();
    RepoPropertiesPage repoProperties = importWizard.openRepoPropertiesPage();
    RepoRemoteBranchesPage remoteBranches = repoProperties
        .nextToRemoteBranches("git://no.example.com/EGIT");
    remoteBranches.assertErrorMessage(NLS.bind(
        UIText.SourceBranchPage_CompositeTransportErrorMessage,
        "Exception caught during execution of ls-remote command",
        "git://no.example.com/EGIT: unknown host"));
    remoteBranches.assertCannotProceed();
    remoteBranches.cancel();
  }
View Full Code Here

  @Ignore
  @Test
  public void invalidPortFreezesDialog() throws Exception {
    importWizard.openWizard();
    RepoPropertiesPage repoProperties = importWizard.openRepoPropertiesPage();
    RepoRemoteBranchesPage remoteBranches = repoProperties
        .nextToRemoteBranches("git://localhost:80/EGIT");
    remoteBranches.assertErrorMessage(NLS.bind(
        UIText.SourceBranchPage_CompositeTransportErrorMessage,
        "Exception caught during execution of ls-remote command",
        "git://localhost:80/EGIT: Connection refused"));
    remoteBranches.assertCannotProceed();
    remoteBranches.cancel();
  }
View Full Code Here

  // an error. Perhaps set a higher timeout for this test ?
  @Ignore
  public void timeoutToASocketFreezesDialog() throws Exception {
    importWizard.openWizard();
    RepoPropertiesPage repoProperties = importWizard.openRepoPropertiesPage();
    RepoRemoteBranchesPage remoteBranches = repoProperties
        .nextToRemoteBranches("git://www.example.com/EGIT");
    remoteBranches
        .assertErrorMessage("git://www.example.com/EGIT: unknown host");
    remoteBranches.assertCannotProceed();
    remoteBranches.cancel();
  }
View Full Code Here

    propertiesPage.setURI(r.getUri());
    propertiesPage.setUser("agitter");
    propertiesPage.setPassword("letmein");
    propertiesPage.setStoreInSecureStore(false);

    RepoRemoteBranchesPage remoteBranches = propertiesPage
        .nextToRemoteBranches();

    cloneRepo(destRepo, remoteBranches);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.common.RepoRemoteBranchesPage

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.