private void vdsExistWithHigherVersion() { VDS vds = new VDS(); vds.setStatus(VDSStatus.Up); vds.setClusterCompatibilityVersion(VERSION_1_2); List<VDS> vdsList = new ArrayList<>(); vdsList.add(vds); when(vdsDao.getAllForCluster(any(Guid.class))).thenReturn(vdsList); }
/** Mock VDS */ protected void mockVds() { VDS vds = new VDS(); vds.setClusterCompatibilityVersion(Version.getLast()); when(vdsDao.get(any(Guid.class))).thenReturn(vds); }