@Test public void testParseConnections() throws Exception { Connections connections = ConfigLoader.parseConnections(null); assertNotNull(connections); assertNotNull(connections.getConnection()); assertTrue(connections.getConnection().isEmpty()); connections = ConfigLoader.parseConnections(new ConnectionsBuilder().build()); assertNotNull(connections); assertNotNull(connections.getConnection()); assertTrue(connections.getConnection().isEmpty()); List<Connection> connectionList = new ArrayList<>(); connectionList.add(new ConnectionBuilder().build()); connectionList.add(new ConnectionBuilder().build()); connections = ConfigLoader.parseConnections(new ConnectionsBuilder().setConnection(connectionList).build()); assertNotNull(connections); assertNotNull(connections.getConnection()); assertEquals(2, connections.getConnection().size()); }
public static org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections parseConnections( org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections connections) { ConnectionsBuilder connectionsBuilder = new ConnectionsBuilder().setConnection(new ArrayList<>()); if (connections != null && connections.getConnection() != null) { connectionsBuilder.setConnection(connections.getConnection()); } return connectionsBuilder.build(); }
ConfigLoader implements AutoCloseable { public static org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections parseConnections( org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections connections) { ConnectionsBuilder connectionsBuilder = new ConnectionsBuilder().setConnection(new ArrayList<>()); if (connections != null && connections.getConnection() != null) { connectionsBuilder.setConnection(connections.getConnection()); } return connectionsBuilder.build(); } }
ConfigLoader implements AutoCloseable { public static org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections parseConnections( org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections connections) { ConnectionsBuilder connectionsBuilder = new ConnectionsBuilder().setConnection(new ArrayList<>()); if (connections != null && connections.getConnection() != null) { connectionsBuilder.setConnection(connections.getConnection()); } return connectionsBuilder.build(); } ConfigLoader(DatastoreAccess datastoreAccess); }
ConfigLoader implements AutoCloseable { public static org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections parseConnections( org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections connections) { ConnectionsBuilder connectionsBuilder = new ConnectionsBuilder().setConnection(new ArrayList<>()); if (connections != null && connections.getConnection() != null) { connectionsBuilder.setConnection(connections.getConnection()); } return connectionsBuilder.build(); } ConfigLoader(DatastoreAccess datastoreAccess); static boolean initTopologyNode(final String nodeName, final LogicalDatastoreType logicalDatastoreType,
            final DatastoreAccess datastoreAccess); static org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections parseConnections(
            org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections connections); @Override void close(); }
ConfigLoader implements AutoCloseable { public static org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections parseConnections( org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections connections) { ConnectionsBuilder connectionsBuilder = new ConnectionsBuilder().setConnection(new ArrayList<>()); if (connections != null && connections.getConnection() != null) { connectionsBuilder.setConnection(connections.getConnection()); } return connectionsBuilder.build(); } ConfigLoader(DatastoreAccess datastoreAccess); static boolean initTopologyNode(final String nodeName, final LogicalDatastoreType logicalDatastoreType,
            final DatastoreAccess datastoreAccess); static org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections parseConnections(
            org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.connections.fields.Connections connections); @Override void close();  }