Package org.eclipse.egit.ui.common

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


    Git git = new Git(localRepository);
    git.add().addFilepattern(SampleTestRepository.A_txt_name).call();
    git.commit().setMessage("Change").call();
    configurePush();
    // push change
    PushWizardTester wizardTester = new PushWizardTester();
    RepoPropertiesPage repoPropertiesPage = wizardTester.openPushWizard(localRepository);
    repoPropertiesPage.setPushDestination("push");
    wizardTester.nextPage();
    // now login dialog appears
    LoginDialogTester loginDialogTester = new LoginDialogTester();
    loginDialogTester.login("agitter", "letmein");
    RefSpecPageTester refSpecPageTester = new RefSpecPageTester();
    refSpecPageTester.waitUntilPageIsReady(1);
    wizardTester.finish();
    loginDialogTester.login("agitter", "letmein");
    PushResultDialogTester pushResultDialogTester = new PushResultDialogTester();
    String expectedMessage = "Repository " + remoteRepository.getUri();
    pushResultDialogTester.assertResultMessage(expectedMessage);
    pushResultDialogTester.closeDialog();
View Full Code Here

TOP

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

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.