Package org.eclipse.egit.ui.common

Examples of org.eclipse.egit.ui.common.ExistingOrNewPage.assertContents()


    // initial state
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    String projectPath = workspace.getRoot().getProject(projectName0)
        .getLocation().toOSString();

    existingOrNewPage.assertContents(false, projectName0, projectPath, "", "");
    existingOrNewPage.assertEnabling(false, false, false);

    // select project
    bot.tree().getTreeItem(projectName0).select();
    existingOrNewPage.assertContents(false, projectName0, projectPath, "",
View Full Code Here


    existingOrNewPage.assertContents(false, projectName0, projectPath, "", "");
    existingOrNewPage.assertEnabling(false, false, false);

    // select project
    bot.tree().getTreeItem(projectName0).select();
    existingOrNewPage.assertContents(false, projectName0, projectPath, "",
        projectPath);
    existingOrNewPage.assertEnabling(true, true, false);

    // create repository
    bot.button("Create Repository").click();
View Full Code Here

    // create repository
    bot.button("Create Repository").click();

    String repopath = workspace.getRoot().getProject(projectName0)
        .getLocation().append(Constants.DOT_GIT).toOSString();
    existingOrNewPage.assertContents(true, projectName0, projectPath,
        ".git", "");
    existingOrNewPage.assertEnabling(false, false, true);

    assertTrue((new File(repopath)).exists());
View Full Code Here

        .getLocation().toOSString();
    String projectPath2 = workspace.getRoot().getProject(projectName2)
        .getLocation().toOSString();
    String projectPath3 = workspace.getRoot().getProject(projectName3)
        .getLocation().toOSString();
    existingOrNewPage.assertContents(
        new Row[] {
            new Row(true, projectName1, projectPath1, ".."
                + File.separator + ".git"),
            new Row(false, projectName2, projectPath2, "", new Row[] {
                new Row(false, ".", "", ".git"),
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.