コード例 #1
0
  @Override
  public void setUp() throws Exception {
    super.setUp();

    vdsCpuStatisticsDao = dbFacade.getVdsCpuStatisticsDao();
    vdsStaticDao = dbFacade.getVdsStaticDao();
    existingVds = vdsStaticDao.get(new Guid("afce7a39-8e8c-4819-ba9c-796d316592e6"));
    newVdsCpuStatistics = new CpuStatistics();
  }
コード例 #2
0
  @Override
  @Before
  public void setUp() throws Exception {
    super.setUp();

    dao = dbFacade.getBookmarkDao();

    // create some test data
    new_bookmark = new Bookmark();
    Random r = new Random(System.currentTimeMillis());
    new_bookmark.setName("newbookmarkname" + (r.nextInt() % BOOKMARK_MAX_RANDOM_NUMBER));
    new_bookmark.setValue("newbookmarkvalue");

    existing_bookmark = dao.get(new Guid("a4affabf-7b45-4a6c-b0a9-107d0bbe265e"));
  }
コード例 #3
0
  @Override
  public void setUp() throws Exception {
    super.setUp();

    dao = dbFacade.getVdsDynamicDao();
    staticDao = dbFacade.getVdsStaticDao();
    statisticsDao = dbFacade.getVdsStatisticsDao();
    existingVds = staticDao.get(FixturesTool.VDS_GLUSTER_SERVER2);

    newStaticVds = new VdsStatic();
    newStaticVds.setHostName("farkle.redhat.com");
    newStaticVds.setVdsGroupId(existingVds.getVdsGroupId());
    newStaticVds.setProtocol(VdsProtocol.STOMP);
    newDynamicVds = new VdsDynamic();
  }