Fix NetconfCommand test case error 53/70153/1
authorLiGuosheng <li.guosheng6@zte.com.cn>
Wed, 28 Mar 2018 04:49:10 +0000 (12:49 +0800)
committerLiGuosheng <li.guosheng6@zte.com.cn>
Wed, 28 Mar 2018 04:49:18 +0000 (12:49 +0800)
In testDisconnectDeviceCommand case, there should not appear
connectDevice, but disconnectDevice.

Change-Id: Ie4e980c1400612fb33300e9a9ccbff57e85c0067
Signed-off-by: Li guosheng <li.guosheng6@zte.com.cn>
netconf/netconf-console/src/test/java/org/opendaylight/netconf/console/commands/NetconfCommandsImplCallsTest.java

index c037c33fe5c8d94ce54f02ec060af9abe39b20e1..afedf3d5fc5142028b2b6ea68371e618263e022b 100644 (file)
@@ -59,7 +59,7 @@ public class NetconfCommandsImplCallsTest {
                 new NetconfDisconnectDeviceCommand(netconfCommands);
         netconfDisconnectDeviceCommand.doExecute();
 
-        verify(netconfCommands, times(0)).connectDevice(any(), any());
+        verify(netconfCommands, times(0)).disconnectDevice(any(), any());
 
         netconfDisconnectDeviceCommand = new NetconfDisconnectDeviceCommand(netconfCommands, "deviceId", null, null);