Пример #1
0
  @Test
  public void testStatisticLinks() throws Exception {
    Statistic statistic = new Statistic();
    statistic.setId(STATISTIC_ID);

    statistic.setVm(new Vm());
    statistic.getVm().setId(VM_ID);

    LinkHelper.addLinks(statistic);

    assertEquals(STATISTIC_HREF, statistic.getHref());
  }
 @Override
 public Statistic adopt(Statistic statistic) {
   statistic.setBrick(clone(parent));
   return statistic;
 }