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();