Checkstyle fixes for tests
- Fixed some checkstyle errors which seemed easier to fix.
Change-Id: I9dadd2e8f98b560fadcc2b704ac52ff8f8b93913
diff --git a/src/test/java/net/onrc/onos/core/intent/runtime/UseCaseTest.java b/src/test/java/net/onrc/onos/core/intent/runtime/UseCaseTest.java
index 8cacabc..30e2845 100644
--- a/src/test/java/net/onrc/onos/core/intent/runtime/UseCaseTest.java
+++ b/src/test/java/net/onrc/onos/core/intent/runtime/UseCaseTest.java
@@ -67,14 +67,14 @@
private IEventChannel<Long, IntentOperationList> intentOperationChannel;
private IEventChannel<Long, IntentStateList> intentStateChannel;
- private static Long LOCAL_PORT = 0xFFFEL;
+ private static final Long LOCAL_PORT = 0xFFFEL;
@SuppressWarnings("unchecked")
@Before
public void setUp() throws Exception {
- MockTopology topology = new MockTopology();
- topology.createSampleTopology1();
- this.topology = topology;
+ MockTopology mockTopology = new MockTopology();
+ mockTopology.createSampleTopology1();
+ this.topology = mockTopology;
datagridService = createMock(IDatagridService.class);
topologyService = createMock(ITopologyService.class);
@@ -100,7 +100,7 @@
expect(modContext.getServiceImpl(IRestApiService.class))
.andReturn(restApi).once();
- expect(topologyService.getTopology()).andReturn(topology).anyTimes();
+ expect(topologyService.getTopology()).andReturn(mockTopology).anyTimes();
topologyService.registerTopologyListener(anyObject(ITopologyListener.class));
expectLastCall();