Search in sources :

Example 6 with JobJoiner

use of org.eclipse.egit.ui.test.JobJoiner in project egit by eclipse.

the class PushBranchWizardTester method finish.

public void finish() {
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.PUSH, 60, TimeUnit.SECONDS);
    wizard.button(UIText.PushBranchWizard_pushButton).click();
    jobJoiner.join();
}
Also used : JobJoiner(org.eclipse.egit.ui.test.JobJoiner)

Example 7 with JobJoiner

use of org.eclipse.egit.ui.test.JobJoiner in project egit by eclipse.

the class PushTagsWizardTester method finish.

public void finish() {
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.PUSH, 60, TimeUnit.SECONDS);
    wizard.button(IDialogConstants.FINISH_LABEL).click();
    jobJoiner.join();
}
Also used : JobJoiner(org.eclipse.egit.ui.test.JobJoiner)

Example 8 with JobJoiner

use of org.eclipse.egit.ui.test.JobJoiner in project egit by eclipse.

the class PushToUpstreamTest method pushToUpstream.

private void pushToUpstream() {
    SWTBotTree project = selectProject();
    JobJoiner joiner = JobJoiner.startListening(JobFamilies.PUSH, 20, TimeUnit.SECONDS);
    ContextMenuHelper.clickContextMenu(project, getPushToUpstreamMenuPath());
    TestUtil.openJobResultDialog(joiner.join());
    SWTBotShell resultDialog = TestUtil.botForShellStartingWith("Push Results");
    resultDialog.close();
}
Also used : JobJoiner(org.eclipse.egit.ui.test.JobJoiner) SWTBotTree(org.eclipse.swtbot.swt.finder.widgets.SWTBotTree) SWTBotShell(org.eclipse.swtbot.swt.finder.widgets.SWTBotShell)

Example 9 with JobJoiner

use of org.eclipse.egit.ui.test.JobJoiner in project egit by eclipse.

the class StagingViewTester method stageFile.

public void stageFile(String path) {
    SWTBotTree unstagedTree = stagingView.bot().tree(0);
    TestUtil.waitUntilTreeHasNodeContainsText(stagingView.bot(), unstagedTree, path, 10000);
    TestUtil.getNode(unstagedTree.getAllItems(), path).select();
    JobJoiner jobJoiner = JobJoiner.startListening(org.eclipse.egit.core.JobFamilies.INDEX_DIFF_CACHE_UPDATE, 30, TimeUnit.SECONDS);
    ContextMenuHelper.clickContextMenu(unstagedTree, UIText.StagingView_StageItemMenuLabel);
    jobJoiner.join();
}
Also used : JobJoiner(org.eclipse.egit.ui.test.JobJoiner) SWTBotTree(org.eclipse.swtbot.swt.finder.widgets.SWTBotTree)

Example 10 with JobJoiner

use of org.eclipse.egit.ui.test.JobJoiner in project egit by eclipse.

the class StagingViewTester method commit.

public void commit() throws Exception {
    JobJoiner jobJoiner = JobJoiner.startListening(JobFamilies.COMMIT, 30, TimeUnit.SECONDS);
    stagingView.bot().button(UIText.StagingView_Commit).click();
    jobJoiner.join();
}
Also used : JobJoiner(org.eclipse.egit.ui.test.JobJoiner)

Aggregations

JobJoiner (org.eclipse.egit.ui.test.JobJoiner)18 SWTBotShell (org.eclipse.swtbot.swt.finder.widgets.SWTBotShell)6 SWTBotTree (org.eclipse.swtbot.swt.finder.widgets.SWTBotTree)6 Repository (org.eclipse.jgit.lib.Repository)4 Test (org.junit.Test)3 SWTBotTreeItem (org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem)2 IProject (org.eclipse.core.resources.IProject)1 RepositoryMapping (org.eclipse.egit.core.project.RepositoryMapping)1 GitSynchronizeData (org.eclipse.egit.core.synchronize.dto.GitSynchronizeData)1 PushOperationUI (org.eclipse.egit.ui.internal.push.PushOperationUI)1 ObjectId (org.eclipse.jgit.lib.ObjectId)1 RevWalk (org.eclipse.jgit.revwalk.RevWalk)1 SWTBotView (org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView)1 SWTBotCombo (org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo)1 SWTBotToolbarButton (org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarButton)1