Beispiel #1
0
  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);
  }
Beispiel #2
0
 private void allQueriesForVms() {
   when(vmDao.getAllForCluster(any(Guid.class))).thenReturn(Collections.<VM>emptyList());
 }