zekimazan / changedistiller

5 stars 19 forks source link

PARENT_CLASS_CHANGE unit test added for issue #28 #65

Closed berkayyildiz97 closed 6 years ago

berkayyildiz97 commented 6 years ago

ParentClassChangeTest checks whether a class' parent class is changed between StatementOrderingChange_Left and StatementOrderingChange_Right.

When PARENT_CLASS_CHANGE is the only change, ChangeDistiller cannot detect that change. In the first commit, PARENT_CLASS_CHANGE which can be seen in line 7 is not detected. Therefore, the test fails.

If there is another change, PARENT_CLASS_CHANGE is detected. In the second commit, there is also STATEMENT_ORDERING_CHANGE in lines 33-34. Therefore, the test passes.