From 9e5ae56fd8dd1d9b8940cf02bbb156f60531f373 Mon Sep 17 00:00:00 2001 From: phansier Date: Fri, 23 Feb 2018 23:35:41 +0300 Subject: [PATCH] Use new Milestone model in IssueFilterTest --- .../com/github/mobile/tests/issue/IssueFilterTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/androidTest/java/com/github/mobile/tests/issue/IssueFilterTest.java b/app/src/androidTest/java/com/github/mobile/tests/issue/IssueFilterTest.java index f129f194..bd3767ba 100644 --- a/app/src/androidTest/java/com/github/mobile/tests/issue/IssueFilterTest.java +++ b/app/src/androidTest/java/com/github/mobile/tests/issue/IssueFilterTest.java @@ -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; @@ -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()); }