use of com.vmware.vim25.InvalidProperty in project SimianArmy by Netflix.
the class VSphereServiceConnectionWithMockedInventoryNavigator method shouldEncapsulateInvalidPropertyException.
@Test(expectedExceptions = AmazonServiceException.class)
public void shouldEncapsulateInvalidPropertyException() throws RemoteException {
VSphereServiceConnectionWithMockedInventoryNavigator service = new VSphereServiceConnectionWithMockedInventoryNavigator();
InventoryNavigator inventoryNavigatorMock = service.getInventoryNavigatorMock();
when(inventoryNavigatorMock.searchManagedEntities(VIRTUAL_MACHINE_TYPE_NAME)).thenThrow(new InvalidProperty());
service.describeVirtualMachines();
}
Aggregations