assertNodesAreMatched(whileStatementLeft, whileStatementRight);
}
@Test
public void unchangedNodesAmongManyNodesShouldMatch() throws Exception {
Node whileStatementLeft = addToLeft(WHILE_STATEMENT, "i < length");
addToLeft(FOR_STATEMENT, "j < length");
addToRight(FOREACH_STATEMENT, "j < size");
Node whileStatementRight = addToRight(WHILE_STATEMENT, "i < length");
addToNode(whileStatementLeft, METHOD_INVOCATION, "foo.bar();");
addToNode(whileStatementLeft, ASSIGNMENT, "aInt = 24;");
addToNode(whileStatementRight, METHOD_INVOCATION, "foo.bar();");
addToNode(whileStatementRight, ASSIGNMENT, "aInt = 24;");
createMatchSet();