From: Robert Varga Date: Mon, 11 Mar 2019 16:30:09 +0000 (+0100) Subject: Fix OpenVSwitchUpdateCommandTest X-Git-Tag: release/sodium~30 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=ea0a48299a95e018796f5cfecf702d6af5f91cd5;p=ovsdb.git Fix OpenVSwitchUpdateCommandTest There is some unnecessary stubbing, remove it to ease migration. JIRA: OVSDB-476 Change-Id: Ie8222eaa524a5fabb9b054e6076a3377708c7248 Signed-off-by: Robert Varga --- diff --git a/southbound/southbound-impl/src/test/java/org/opendaylight/ovsdb/southbound/transactions/md/OpenVSwitchUpdateCommandTest.java b/southbound/southbound-impl/src/test/java/org/opendaylight/ovsdb/southbound/transactions/md/OpenVSwitchUpdateCommandTest.java index 79400c255..ee36f90de 100644 --- a/southbound/southbound-impl/src/test/java/org/opendaylight/ovsdb/southbound/transactions/md/OpenVSwitchUpdateCommandTest.java +++ b/southbound/southbound-impl/src/test/java/org/opendaylight/ovsdb/southbound/transactions/md/OpenVSwitchUpdateCommandTest.java @@ -332,7 +332,6 @@ public class OpenVSwitchUpdateCommandTest { when(openVSwitch.getDbVersionColumn()).thenReturn(column); when(column.getData()).thenReturn(ImmutableSet.of("7.6.1")); OvsdbNodeAugmentationBuilder ovsdbNodeBuilder = mock(OvsdbNodeAugmentationBuilder.class); - when(ovsdbNodeBuilder.setOvsVersion(anyString())).thenReturn(ovsdbNodeBuilder); Whitebox.invokeMethod(openVSwitchUpdateCommand, "setDbVersion", ovsdbNodeBuilder, openVSwitch); verify(ovsdbNodeBuilder).setDbVersion(anyString());