コード例 #1
0
 private VDSGroup getVDsGroup() {
   VDSGroup vdsGroup = new VDSGroup();
   vdsGroup.setId(clusterId);
   vdsGroup.setVirtService(false);
   vdsGroup.setGlusterService(true);
   vdsGroup.setcompatibility_version(Version.v3_1);
   return vdsGroup;
 }
コード例 #2
0
 @Override
 protected VdsGroupDAO getVdsGroupDAO() {
   VdsGroupDAO d = mock(VdsGroupDAO.class);
   List<VDSGroup> list = new ArrayList<VDSGroup>();
   VDSGroup g = new VDSGroup();
   g.setID(getParameters().getVdsGroupId());
   Version v = new Version("2.2");
   g.setcompatibility_version(v);
   list.add(g);
   when(d.getAllForStoragePool(any(Guid.class))).thenReturn(list);
   when(d.get(any(Guid.class))).thenReturn(g);
   return d;
 }