Remove reference that is only used in unit test
Change-Id: I261242daedb55ecb86d8f9c862aed98230c1540c
Showing
2 changed files
with
0 additions
and
6 deletions
... | @@ -39,7 +39,6 @@ import org.onosproject.net.intent.IntentCompiler; | ... | @@ -39,7 +39,6 @@ import org.onosproject.net.intent.IntentCompiler; |
39 | import org.onosproject.net.intent.IntentExtensionService; | 39 | import org.onosproject.net.intent.IntentExtensionService; |
40 | import org.onosproject.net.intent.OpticalPathIntent; | 40 | import org.onosproject.net.intent.OpticalPathIntent; |
41 | import org.onosproject.net.resource.link.LinkResourceAllocations; | 41 | import org.onosproject.net.resource.link.LinkResourceAllocations; |
42 | -import org.onosproject.net.resource.link.LinkResourceService; | ||
43 | import org.slf4j.Logger; | 42 | import org.slf4j.Logger; |
44 | import org.slf4j.LoggerFactory; | 43 | import org.slf4j.LoggerFactory; |
45 | 44 | ||
... | @@ -59,9 +58,6 @@ public class OpticalPathIntentCompiler implements IntentCompiler<OpticalPathInte | ... | @@ -59,9 +58,6 @@ public class OpticalPathIntentCompiler implements IntentCompiler<OpticalPathInte |
59 | @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) | 58 | @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) |
60 | protected CoreService coreService; | 59 | protected CoreService coreService; |
61 | 60 | ||
62 | - @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) | ||
63 | - protected LinkResourceService resourceService; | ||
64 | - | ||
65 | private ApplicationId appId; | 61 | private ApplicationId appId; |
66 | 62 | ||
67 | @Activate | 63 | @Activate | ... | ... |
... | @@ -35,7 +35,6 @@ import org.onosproject.net.flow.TrafficTreatment; | ... | @@ -35,7 +35,6 @@ import org.onosproject.net.flow.TrafficTreatment; |
35 | import org.onosproject.net.intent.FlowRuleIntent; | 35 | import org.onosproject.net.intent.FlowRuleIntent; |
36 | import org.onosproject.net.intent.Intent; | 36 | import org.onosproject.net.intent.Intent; |
37 | import org.onosproject.net.intent.IntentExtensionService; | 37 | import org.onosproject.net.intent.IntentExtensionService; |
38 | -import org.onosproject.net.intent.IntentTestsMocks; | ||
39 | import org.onosproject.net.intent.MockIdGenerator; | 38 | import org.onosproject.net.intent.MockIdGenerator; |
40 | import org.onosproject.net.intent.OpticalPathIntent; | 39 | import org.onosproject.net.intent.OpticalPathIntent; |
41 | import org.onosproject.net.provider.ProviderId; | 40 | import org.onosproject.net.provider.ProviderId; |
... | @@ -103,7 +102,6 @@ public class OpticalPathIntentCompilerTest { | ... | @@ -103,7 +102,6 @@ public class OpticalPathIntentCompilerTest { |
103 | intentExtensionService.registerCompiler(OpticalPathIntent.class, sut); | 102 | intentExtensionService.registerCompiler(OpticalPathIntent.class, sut); |
104 | intentExtensionService.unregisterCompiler(OpticalPathIntent.class); | 103 | intentExtensionService.unregisterCompiler(OpticalPathIntent.class); |
105 | sut.intentManager = intentExtensionService; | 104 | sut.intentManager = intentExtensionService; |
106 | - sut.resourceService = new IntentTestsMocks.MockResourceService(); | ||
107 | 105 | ||
108 | replay(coreService, intentExtensionService); | 106 | replay(coreService, intentExtensionService); |
109 | } | 107 | } | ... | ... |
-
Please register or login to post a comment