Skip to content

Commit

Permalink
Fixed the test
Browse files Browse the repository at this point in the history
  • Loading branch information
arepina committed Jan 31, 2018
1 parent 6073cbc commit 02863ad
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ public void testEqualFilter() {
assertEquals(filter1.hashCode(), filter2.hashCode());

Milestone milestone = new Milestone().setNumber(3);
filter1.setMilestone(milestone);
com.github.mobile.api.model.Milestone extraMilestone = new com.github.mobile.api.model.Milestone(milestone);
filter1.setMilestone(extraMilestone);
assertFalse(filter1.equals(filter2));
filter2.setMilestone(milestone);
filter2.setMilestone(extraMilestone);
assertEquals(filter1, filter2);
assertEquals(filter1.hashCode(), filter2.hashCode());
}
Expand Down

0 comments on commit 02863ad

Please sign in to comment.