X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-remoterpc-connector%2Fimplementation%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fconnector%2Fremoterpc%2FServerImplTest.java;h=886ff426c7948d4a95d778d0f5717da1f0aa582e;hp=1b282f6ab5e5ead6d903c387cea22d015afba297;hb=1f2754487ab1e3a37c830909806f90cd54180c7b;hpb=ba470e5b912b7251110b6e7a1da583144a5b8fe8 diff --git a/opendaylight/md-sal/sal-remoterpc-connector/implementation/src/test/java/org/opendaylight/controller/sal/connector/remoterpc/ServerImplTest.java b/opendaylight/md-sal/sal-remoterpc-connector/implementation/src/test/java/org/opendaylight/controller/sal/connector/remoterpc/ServerImplTest.java index 1b282f6ab5..886ff426c7 100644 --- a/opendaylight/md-sal/sal-remoterpc-connector/implementation/src/test/java/org/opendaylight/controller/sal/connector/remoterpc/ServerImplTest.java +++ b/opendaylight/md-sal/sal-remoterpc-connector/implementation/src/test/java/org/opendaylight/controller/sal/connector/remoterpc/ServerImplTest.java @@ -11,6 +11,7 @@ package org.opendaylight.controller.sal.connector.remoterpc; import com.google.common.base.Optional; import junit.framework.Assert; import org.junit.*; +import org.opendaylight.controller.sal.connector.api.RpcRouter; import org.opendaylight.controller.sal.connector.remoterpc.api.RoutingTable; import org.opendaylight.controller.sal.connector.remoterpc.utils.MessagingUtil; import org.opendaylight.controller.sal.core.api.Broker; @@ -66,10 +67,9 @@ public class ServerImplTest { server = new ServerImpl(port); server.setBrokerSession(brokerSession); - server.setRoutingTableProvider(routingTableProvider); - RoutingTable mockRoutingTable = new MockRoutingTable(); - Optional> optionalRoutingTable = Optional.fromNullable(mockRoutingTable); + RoutingTable mockRoutingTable = new MockRoutingTable(); + Optional> optionalRoutingTable = Optional.fromNullable(mockRoutingTable); when(routingTableProvider.getRoutingTable()).thenReturn(optionalRoutingTable); when(brokerSession.addRpcRegistrationListener(listener)).thenReturn(null); @@ -94,11 +94,6 @@ public class ServerImplTest { Assert.assertEquals(ServerImpl.State.STOPPED, server.getStatus()); } - @Test - public void getRoutingTableProvider_Call_ShouldReturnRoutingTable() throws Exception { - Assert.assertNotNull(server.getRoutingTableProvider()); - } - @Test public void getBrokerSession_Call_ShouldReturnBrokerSession() throws Exception { Optional mayBeBroker = server.getBrokerSession();