protected void verifyModel(Group model, int index) {
   assertEquals(GUIDS[index].toString(), model.getId());
   assertEquals(EXTERNAL_IDS[index].toHex(), model.getExternalId());
   assertEquals(NAMES[index], model.getName());
   assertNotNull(model.getDomain());
   verifyLinks(model);
 }
Ejemplo n.º 2
0
  @Test
  public void testGroupLinks() throws Exception {
    Group group = new Group();
    group.setId(GROUP_ID);

    LinkHelper.addLinks(group);

    assertEquals(GROUP_HREF, group.getHref());
  }