Exemplo n.º 1
0
 @Test
 public void testAddActor() throws Exception {
   Role toAdd = ROLE_FACTORY.getNext();
   actors.add(toAdd);
   entity.addActor(toAdd);
   assertEquals(actors, entity.getActors());
 }
Exemplo n.º 2
0
 @Test
 public void testGetActorsForRole() throws Exception {
   Role role = ROLE_FACTORY.getNext();
   entity.addActor(role);
   assertTrue(entity.getActorsForRole(role.getRole()).contains(role.getActor()));
 }