Skip to content

Commit

Permalink
Use new Milestone model in IssueFilterTest
Browse files Browse the repository at this point in the history
  • Loading branch information
phansier committed Feb 23, 2018
1 parent e3a85c2 commit 9e5ae56
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

import android.test.AndroidTestCase;

import com.github.mobile.api.model.Milestone;
import com.github.mobile.core.issue.IssueFilter;

import org.eclipse.egit.github.core.Milestone;
import org.eclipse.egit.github.core.Repository;
import org.eclipse.egit.github.core.User;

Expand Down Expand Up @@ -56,11 +56,11 @@ public void testEqualFilter() {
assertEquals(filter1, filter2);
assertEquals(filter1.hashCode(), filter2.hashCode());

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

0 comments on commit 9e5ae56

Please sign in to comment.