Refactor ShutdownProvider.shutdown()
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / OpenFlowPluginProviderImplTest.java
index 6c7bae1855ab93f7765bf1d69ab549af60d0e2b7..012d39aa89647e9441b8a37c7fc865d8f80f7cfa 100644 (file)
@@ -77,8 +77,8 @@ public class OpenFlowPluginProviderImplTest {
         when(dataBroker.newWriteOnlyTransaction()).thenReturn(writeTransaction);
         doReturn(CommitInfo.emptyFluentFuture()).when(writeTransaction).commit();
         when(entityOwnershipService.registerListener(any(), any())).thenReturn(entityOwnershipListenerRegistration);
-        when(switchConnectionProvider.startup(any())).thenReturn(Futures.immediateFuture(null));
-        when(switchConnectionProvider.shutdown()).thenReturn(Futures.immediateFuture(true));
+        when(switchConnectionProvider.startup(any())).thenReturn(Futures.immediateVoidFuture());
+        when(switchConnectionProvider.shutdown()).thenReturn(Futures.immediateVoidFuture());
         when(configurationService.getProperty(eq(ConfigurationProperty.USE_SINGLE_LAYER_SERIALIZATION.toString()),
                 any())).thenReturn(USE_SINGLE_LAYER_SERIALIZATION);
         when(configurationService.getProperty(eq(ConfigurationProperty.THREAD_POOL_MIN_THREADS.toString()), any()))