verifyNoMoreInteractions(networkingProviderManager);
when(configurationService.getIntegrationBridgeName()).thenReturn(bridgeMockName);
- // getBridge() is private method - cannot be mocked with mockito
- // when(bridgeConfigurationManagerImpl.getBridge(any(Node.class), anyString())).thenReturn(bridgeMock);
+ // readBridge() is private method - cannot be mocked with mockito
+ // when(bridgeConfigurationManagerImpl.readBridge(any(Node.class), anyString())).thenReturn(bridgeMock);
// Negative testing only due to private method call
assertEquals("Error, did not return correct boolean from isNodeTunnelReady", false,
verifyNoMoreInteractions(configurationService);
verifyNoMoreInteractions(networkingProviderManager);
- // getBridge() is private method - cannot be mocked with mockito
+ // readBridge() is private method - cannot be mocked with mockito
// Negative testing only due to private method call
assertEquals("Error, did not return correct boolean from isNodeVlanReady", false,
bridgeConfigurationManagerImpl.isNodeVlanReady(nodeMock, neutronNetworkMock));
verify(configurationService, times(1)).getProviderMappingsKey();
verify(configurationService, times(0)).getDefaultProviderMapping();
}
-
+ /* TODO SB_MIGRATION
@Test
public void testGetBridge() throws Exception {
Row row = mock(Row.class);
hashMap = new ConcurrentHashMap<>();
hashMap.put("row1", row);
- /* TODO SB_MIGRATION */
//when(ovsdbConfigurationService.getRows(any(Node.class), anyString())).thenReturn(hashMap);
//when(ovsdbConfigurationService.getTypedRow(any(Node.class), same(Bridge.class),
// any(Row.class))).thenReturn(bridge);
//verify(ovsdbConfigurationService, times(1)).getRows(any(Node.class), anyString());
//verify(ovsdbConfigurationService, times(1)).getTableName(any(Node.class), any(Class.class));
//verify(ovsdbConfigurationService, times(1)).getTypedRow(any(Node.class), any(Class.class), any(Row.class));
- }
+ }*/
}
\ No newline at end of file