- lifecycleConductor.roleChangeOnDevice(deviceInfo,false,ofpRole,false);
- verify(deviceContext,times(0)).shutdownConnection();
- }
-
- /**
- * When success flag is set to FALSE connection should be closed
- */
- @Test
- public void roleChangeOnDeviceTest2() {
- when(deviceManager.gainContext(deviceInfo)).thenReturn(deviceContext);
- lifecycleConductor.roleChangeOnDevice(deviceInfo,false,ofpRole,false);
- verify(deviceContext,times(1)).shutdownConnection();
- }
-
- /**
- * When success flag is set to TRUE and initializationPahse flag is set to TRUE starting
- * device should be skipped
- */
- @Test
- public void roleChangeOnDeviceTest3() {
- when(deviceManager.gainContext(deviceInfo)).thenReturn(deviceContext);
- lifecycleConductor.roleChangeOnDevice(deviceInfo,true,ofpRole,true);