makeChangesAndCommit(PROJ1);
// compare HEAD against tag
launchSynchronization(HEAD, INITIAL_TAG, false);
CompareEditorTester outgoingCompare = getCompareEditorForFileInGitChangeSet(
FILE1, false);
// save left value from compare editor
String outgoingLeft = outgoingCompare.getLeftEditor().getText();
// save right value from compare editor
String outgoingRight = outgoingCompare.getRightEditor().getText();
outgoingCompare.close();
assertNotSame("Text from SWTBot widgets was the same", outgoingLeft, outgoingRight);
// when
// compare tag against HEAD
launchSynchronization(INITIAL_TAG, HEAD, false);
// then
CompareEditorTester incomingComp = getCompareEditorForFileInGitChangeSet(
FILE1, false);
// right side from compare editor should be equal with left
assertThat(outgoingLeft, equalTo(incomingComp.getRightEditor().getText()));
// left side from compare editor should be equal with right
assertThat(outgoingRight, equalTo(incomingComp.getLeftEditor().getText()));
}