Return Set instead of Iterable in test setup 63/75563/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 20 Aug 2018 18:02:27 +0000 (20:02 +0200)
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>
Fri, 31 Aug 2018 08:06:45 +0000 (08:06 +0000)
This allows us to define equality in superclass, hence return
proper Set.

Change-Id: Ic37c3283ff234181320201f18e14047d6aa92d37
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 3ac945ff239a96c6e9a814e900ada0258ccbbe47)

bgp/openconfig-state/src/test/java/org/opendaylight/protocol/bgp/state/StateProviderImplTest.java

index 9ea5ed77c0e19be7a25f4207ebd356725f4864ca..6b7204622a85a29e603a809763221410b398098d 100644 (file)
@@ -36,6 +36,7 @@ import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
 import java.util.Optional;
+import java.util.Set;
 import java.util.concurrent.ScheduledExecutorService;
 import java.util.concurrent.ScheduledFuture;
 import java.util.concurrent.TimeUnit;
@@ -273,7 +274,7 @@ public class StateProviderImplTest extends ConstantSchemaAbstractDataBrokerTest
     }
 
     @Override
-    protected Iterable<YangModuleInfo> getModuleInfos() throws Exception {
+    protected Set<YangModuleInfo> getModuleInfos() throws Exception {
         return ImmutableSet.of(BindingReflections.getModuleInfo(NetworkInstances.class),
                 BindingReflections.getModuleInfo(NetworkInstanceProtocol.class));
     }