import com.google.common.util.concurrent.FluentFuture;
import com.google.common.util.concurrent.ListenableFuture;
-import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
public abstract class FRMTest extends AbstractDataBrokerTest {
public void addFlowCapableNode(NodeKey nodeKey) {
- Nodes nodes = new NodesBuilder().setNode(Collections.emptyList()).build();
+ Nodes nodes = new NodesBuilder().build();
FlowCapableNodeBuilder fcnBuilder = new FlowCapableNodeBuilder();
NodeBuilder nodeBuilder = new NodeBuilder();
public void addTable(final TableKey tableKey, final NodeKey nodeKey) {
addFlowCapableNode(nodeKey);
- final Table table = new TableBuilder().withKey(tableKey).setFlow(Collections.emptyList()).build();
+ final Table table = new TableBuilder().withKey(tableKey).build();
WriteTransaction writeTx = getDataBroker().newWriteOnlyTransaction();
InstanceIdentifier<Table> tableII = InstanceIdentifier.create(Nodes.class).child(Node.class, nodeKey)
.augmentation(FlowCapableNode.class).child(Table.class, tableKey);
package org.opendaylight.openflowplugin.impl.util;
import java.net.InetSocketAddress;
-import java.util.Collections;
import java.util.Optional;
import java.util.concurrent.ExecutionException;
import org.opendaylight.mdsal.binding.api.DataBroker;
try {
tx.merge(LogicalDatastoreType.OPERATIONAL, InstanceIdentifier.create(Nodes.class), new NodesBuilder()
- .setNode(Collections.emptyList())
.build());
tx.commit().get();
} catch (ExecutionException | InterruptedException e) {
import static org.mockito.Mockito.when;
import java.net.InetSocketAddress;
-import java.util.Collections;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
verify(dataBroker).newWriteOnlyTransaction();
verify(writeTransaction).merge(LogicalDatastoreType.OPERATIONAL, InstanceIdentifier
.create(Nodes.class), new NodesBuilder()
- .setNode(Collections.emptyList())
.build());
verify(writeTransaction).commit();
}
assertEquals(TABLES, switchFeatures.getMaxTables().shortValue());
}
-}
\ No newline at end of file
+}