private void clusterHasVMs() { VM vm = new VM(); vm.setClusterId(DEFAULT_CLUSTER_ID); List<VM> vmList = new ArrayList<>(); vmList.add(vm); when(vmDao.getAllForCluster(any(Guid.class))).thenReturn(vmList); }
private void allQueriesForVms() { when(vmDao.getAllForCluster(any(Guid.class))).thenReturn(Collections.<VM>emptyList()); }