Return Set instead of Iterable in test 53/75353/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 21 Aug 2018 10:39:24 +0000 (12:39 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 21 Aug 2018 10:39:24 +0000 (12:39 +0200)
Method signature will be changed to Set to define equality, prepare
for that.

Change-Id: I9f0bf9a40b6082de5fb7d651dafe9c3b1f32f0af
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
neutron-hostconfig/vpp/src/test/java/org/opendaylight/neutron/hostconfig/vpp/HostconfigsDataBrokerTest.java

index 85921fff11c560c2181deae9236f31463c0e4475..7cb4a50149b083e495afdffc406d18e03d2ad2d3 100644 (file)
@@ -5,14 +5,13 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.neutron.hostconfig.vpp;
 
 import com.google.common.base.Preconditions;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.ImmutableSet.Builder;
-
+import java.util.Set;
 import org.opendaylight.controller.md.sal.binding.test.AbstractConcurrentDataBrokerTest;
 import org.opendaylight.mdsal.binding.spec.reflect.BindingReflections;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNode;
@@ -23,7 +22,7 @@ import org.opendaylight.yangtools.yang.binding.YangModuleInfo;
 public class HostconfigsDataBrokerTest extends AbstractConcurrentDataBrokerTest {
 
     @Override
-    protected Iterable<YangModuleInfo> getModuleInfos() throws Exception {
+    protected Set<YangModuleInfo> getModuleInfos() throws Exception {
         Builder<YangModuleInfo> moduleInfoSet = ImmutableSet.<YangModuleInfo>builder();
         for (Class<?> moduleClass : ImmutableList.<Class<?>>of(
             NetworkTopology.class, Neutron.class, NetconfNode.class)) {