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