X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-remoterpc-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fremote%2Frpc%2Fregistry%2Fgossip%2FGossiperTest.java;h=cf42ebf1ccd4de520c4d5f4036f9a3e67cd75275;hb=ea2ea3252c90434d9fc09b1e712ac2f9a30afe38;hp=d862dcb8cd5f96b5e81aea87a3da297b5164340e;hpb=c911a187bdcd6160c1929e53466cd9de681c2098;p=controller.git diff --git a/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/gossip/GossiperTest.java b/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/gossip/GossiperTest.java index d862dcb8cd..cf42ebf1cc 100644 --- a/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/gossip/GossiperTest.java +++ b/opendaylight/md-sal/sal-remoterpc-connector/src/test/java/org/opendaylight/controller/remote/rpc/registry/gossip/GossiperTest.java @@ -45,7 +45,6 @@ public class GossiperTest { @BeforeClass public static void setup() throws InterruptedException { - Thread.sleep(1000);//give some time for previous test to stop the system. Netty port conflict arises otherwise. system = ActorSystem.create("opendaylight-rpc", ConfigFactory.load().getConfig("unit-test")); system.actorOf(Props.create(TerminationMonitor.class), "termination-monitor"); @@ -72,7 +71,7 @@ public class GossiperTest { @Test public void testReceiveGossipTick_WhenNoRemoteMemberShouldIgnore(){ - mockGossiper.setClusterMembers(Collections.EMPTY_LIST); + mockGossiper.setClusterMembers(Collections.
emptyList()); doNothing().when(mockGossiper).getLocalStatusAndSendTo(any(Address.class)); mockGossiper.receiveGossipTick(); verify(mockGossiper, times(0)).getLocalStatusAndSendTo(any(Address.class)); @@ -115,17 +114,6 @@ public class GossiperTest { verify(mockGossiper, times(0)).updateRemoteBuckets(anyMap()); } - @Test - public void testUpdateRemoteBuckets_WhenNoBucketShouldIgnore(){ - - mockGossiper.updateRemoteBuckets(null); - verify(mockGossiper, times(0)).getContext(); - - Map empty = Collections.emptyMap(); - mockGossiper.updateRemoteBuckets(empty); - verify(mockGossiper, times(0)).getContext(); - } - /** * Create Gossiper actor and return the underlying instance of Gossiper class. *