X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fnetconf-topology-singleton%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Ftopology%2Fsingleton%2Fimpl%2Futils%2FNetconfTopologyUtilTest.java;h=648e38b4e556b0a2fe4a98cb1dfc9b31f62f5389;hb=refs%2Fchanges%2F14%2F100814%2F4;hp=9f95da5779c1887f7d3b56a34bfc0737606ffa69;hpb=622b6917095076cbdb8478863cdd5fad2988f65a;p=netconf.git diff --git a/netconf/netconf-topology-singleton/src/test/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologyUtilTest.java b/netconf/netconf-topology-singleton/src/test/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologyUtilTest.java index 9f95da5779..648e38b4e5 100644 --- a/netconf/netconf-topology-singleton/src/test/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologyUtilTest.java +++ b/netconf/netconf-topology-singleton/src/test/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologyUtilTest.java @@ -5,41 +5,18 @@ * 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.netconf.topology.singleton.impl.utils; import static org.junit.Assert.assertEquals; import org.junit.Test; -import org.opendaylight.netconf.sal.connect.util.RemoteDeviceId; -import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Host; -import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress; -import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address; -import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber; -import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNode; -import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNodeBuilder; import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId; import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology; import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node; import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey; import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; -import org.opendaylight.yangtools.yang.common.Uint16; public class NetconfTopologyUtilTest { - - @Test - public void testCreateRemoteDeviceId() { - final Host host = new Host(new IpAddress(new Ipv4Address("127.0.0.1"))); - final NetconfNode netconfNode = new NetconfNodeBuilder().setHost(host) - .setPort(new PortNumber(Uint16.valueOf(9999))).build(); - final NodeId nodeId = new NodeId("testing-node"); - final RemoteDeviceId id = NetconfTopologyUtils.createRemoteDeviceId(nodeId, netconfNode); - - assertEquals("testing-node", id.getName()); - assertEquals(host, id.getHost()); - assertEquals(9999, id.getAddress().getPort()); - } - @Test public void testCreateActorPath() { final String actorPath = NetconfTopologyUtils.createActorPath("member", "name"); @@ -57,5 +34,4 @@ public class NetconfTopologyUtilTest { assertEquals("topologyId", NetconfTopologyUtils.createTopologyNodePath("topologyId") .firstKeyOf(Topology.class).getTopologyId().getValue()); } - }