@Test public void findEntityByShortname() throws Exception { context.checking(new Expectations() { { oneOf(mapper).findByShortName("group"); will(returnValue(group)); } }); assertNotNull(sut.findEntity(user, "group")); context.assertIsSatisfied(); }
public DomainGroup findEntity(final Principal user, final String id) throws Exception { return mapper.findByShortName(id); }
GroupFinder implements EntityFinder<DomainGroup> { public DomainGroup findEntity(final Principal user, final String id) throws Exception { return mapper.findByShortName(id); } }
GroupFinder implements EntityFinder<DomainGroup> { public DomainGroup findEntity(final Principal user, final String id) throws Exception { return mapper.findByShortName(id); } GroupFinder(final DomainGroupMapper inMapper); }
GroupFinder implements EntityFinder<DomainGroup> { public DomainGroup findEntity(final Principal user, final String id) throws Exception { return mapper.findByShortName(id); } GroupFinder(final DomainGroupMapper inMapper); DomainGroup findEntity(final Principal user, final String id); DomainGroup findEntity(final Principal user, final Long id); }
GroupFinder implements EntityFinder<DomainGroup> { public DomainGroup findEntity(final Principal user, final String id) throws Exception { return mapper.findByShortName(id); } GroupFinder(final DomainGroupMapper inMapper); DomainGroup findEntity(final Principal user, final String id); DomainGroup findEntity(final Principal user, final Long id);  }