String dialogTitle = UIText.CompareTargetSelectionDialog_WindowTitle;
SWTBotShell dialog = openCompareWithDialog(compareWithRefActionLabel,
dialogTitle);
// use the default (the last commit) -> no changes
JobJoiner jobJoiner = JobJoiner.startListening(
ISynchronizeManager.FAMILY_SYNCHRONIZE_OPERATION, 60,
TimeUnit.SECONDS);
dialog.bot().button(UIText.CompareTargetSelectionDialog_CompareButton)
.click();
jobJoiner.join();
closeFirstEmptySynchronizeDialog();
assertSynchronizeNoChange();
// use the tag -> should have a change
dialog = openCompareWithDialog(compareWithRefActionLabel, dialogTitle);
SWTBotTreeItem tags = dialog.bot().tree().getTreeItem(TAGS).expand();
TestUtil.getChildNode(tags, "SomeTag").select();
jobJoiner = JobJoiner.startListening(
ISynchronizeManager.FAMILY_SYNCHRONIZE_OPERATION, 60,
TimeUnit.SECONDS);
dialog.bot().button(UIText.CompareTargetSelectionDialog_CompareButton)
.click();
jobJoiner.join();
assertSynchronizeFile1Changed();
}