Jonathan Hart
Committed by Gerrit Code Review

Move TestIntentServiceHelper to routing-api bundle

Change-Id: I4c476cb89400e2eb14e0fc5f3db96c2886708244
...@@ -78,5 +78,11 @@ ...@@ -78,5 +78,11 @@
78 <artifactId>onlab-junit</artifactId> 78 <artifactId>onlab-junit</artifactId>
79 <scope>test</scope> 79 <scope>test</scope>
80 </dependency> 80 </dependency>
81 +
82 + <dependency>
83 + <groupId>org.easymock</groupId>
84 + <artifactId>easymock</artifactId>
85 + <scope>test</scope>
86 + </dependency>
81 </dependencies> 87 </dependencies>
82 </project> 88 </project>
......
1 /* 1 /*
2 - * Copyright 2014-2015 Open Networking Laboratory 2 + * Copyright 2016 Open Networking Laboratory
3 * 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License. 5 * you may not use this file except in compliance with the License.
...@@ -13,14 +13,13 @@ ...@@ -13,14 +13,13 @@
13 * See the License for the specific language governing permissions and 13 * See the License for the specific language governing permissions and
14 * limitations under the License. 14 * limitations under the License.
15 */ 15 */
16 -package org.onosproject.sdnip; 16 +package org.onosproject.routing;
17 17
18 +import org.easymock.EasyMock;
18 import org.easymock.IArgumentMatcher; 19 import org.easymock.IArgumentMatcher;
19 import org.onosproject.net.intent.Intent; 20 import org.onosproject.net.intent.Intent;
20 import org.onosproject.net.intent.IntentUtils; 21 import org.onosproject.net.intent.IntentUtils;
21 22
22 -import static org.easymock.EasyMock.reportMatcher;
23 -
24 /** 23 /**
25 * Helper class for testing operations submitted to the IntentService. 24 * Helper class for testing operations submitted to the IntentService.
26 */ 25 */
...@@ -38,8 +37,8 @@ public final class TestIntentServiceHelper { ...@@ -38,8 +37,8 @@ public final class TestIntentServiceHelper {
38 * @param intent the expected Intent 37 * @param intent the expected Intent
39 * @return the submitted Intent 38 * @return the submitted Intent
40 */ 39 */
41 - static Intent eqExceptId(Intent intent) { 40 + public static Intent eqExceptId(Intent intent) {
42 - reportMatcher(new IdAgnosticIntentMatcher(intent)); 41 + EasyMock.reportMatcher(new IdAgnosticIntentMatcher(intent));
43 return intent; 42 return intent;
44 } 43 }
45 44
......
...@@ -68,7 +68,7 @@ import static org.easymock.EasyMock.expectLastCall; ...@@ -68,7 +68,7 @@ import static org.easymock.EasyMock.expectLastCall;
68 import static org.easymock.EasyMock.replay; 68 import static org.easymock.EasyMock.replay;
69 import static org.easymock.EasyMock.reset; 69 import static org.easymock.EasyMock.reset;
70 import static org.easymock.EasyMock.verify; 70 import static org.easymock.EasyMock.verify;
71 -import static org.onosproject.sdnip.TestIntentServiceHelper.eqExceptId; 71 +import static org.onosproject.routing.TestIntentServiceHelper.eqExceptId;
72 72
73 /** 73 /**
74 * Unit tests for PeerConnectivityManager. 74 * Unit tests for PeerConnectivityManager.
......
...@@ -61,7 +61,7 @@ import static org.easymock.EasyMock.expect; ...@@ -61,7 +61,7 @@ import static org.easymock.EasyMock.expect;
61 import static org.easymock.EasyMock.replay; 61 import static org.easymock.EasyMock.replay;
62 import static org.easymock.EasyMock.reset; 62 import static org.easymock.EasyMock.reset;
63 import static org.easymock.EasyMock.verify; 63 import static org.easymock.EasyMock.verify;
64 -import static org.onosproject.sdnip.TestIntentServiceHelper.eqExceptId; 64 +import static org.onosproject.routing.TestIntentServiceHelper.eqExceptId;
65 65
66 /** 66 /**
67 * Unit tests for SdnIpFib. 67 * Unit tests for SdnIpFib.
......