X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fimpl%2Ftranslator%2FFlowRemovedTranslatorTest.java;h=278e00aabecf0413008dd856b8e121927096e69b;hb=d7d3bc5587b714f788b9a533e29eae64a3a4c6d8;hp=9dfa372f90328457fa7b93b447e602d531e2efc5;hpb=f4f722497a54a935f8bedcfbd88e287fa11fe5cb;p=openflowplugin.git diff --git a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/translator/FlowRemovedTranslatorTest.java b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/translator/FlowRemovedTranslatorTest.java index 9dfa372f90..278e00aabe 100644 --- a/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/translator/FlowRemovedTranslatorTest.java +++ b/openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/translator/FlowRemovedTranslatorTest.java @@ -31,7 +31,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.N import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.FlowRemovedReason; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.FlowWildcardsV10; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.TableId; -import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntry; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.grouping.MatchBuilder; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.v10.grouping.MatchV10Builder; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.FlowRemovedMessageBuilder; @@ -64,20 +63,16 @@ public class FlowRemovedTranslatorTest { @Mock private FlowWildcardsV10 flowWildcards; - private KeyedInstanceIdentifier nodeId; - @Before public void setUp() throws Exception { - nodeId = InstanceIdentifier.create(Nodes.class) + final KeyedInstanceIdentifier nodeId = InstanceIdentifier.create(Nodes.class) .child(Node.class, new NodeKey(new NodeId("dummyNodeId"))); final ConvertorManager convertorManager = ConvertorManagerFactory.createDefaultManager(); translator = new FlowRemovedTranslator(convertorManager); translatorV10 = new FlowRemovedV10Translator(convertorManager); - when(deviceContext.getDeviceState()).thenReturn(deviceState); when(deviceInfo.getNodeInstanceIdentifier()).thenReturn(nodeId); - when(features.getDatapathId()).thenReturn(BigInteger.TEN); } @Test @@ -112,7 +107,7 @@ public class FlowRemovedTranslatorTest { if (isV10) { builder.setMatchV10(new MatchV10Builder().setWildcards(flowWildcards).build()); } else { - builder.setMatch(new MatchBuilder().setMatchEntry(Collections.emptyList()).build()) + builder.setMatch(new MatchBuilder().setMatchEntry(Collections.emptyList()).build()) .setTableId(new TableId(42L)); }