@Test( expectedExceptions = NullPointerException.class, expectedExceptionsMessageRegExp = "Required non-null email" ) public void shouldThrowOnFetchingInvitesByNullEmail() throws Exception { inviteManager.getInvites(null, 0, 0); }
public Page<? extends Invite> getInvites(String email, int maxItems, long skipCount) throws ServerException { requireNonNull(email, "Required non-null email"); return inviteDao.getInvites(email, maxItems, skipCount); }
InviteManager { public Page<? extends Invite> getInvites(String email, int maxItems, long skipCount) throws ServerException { requireNonNull(email, "Required non-null email"); return inviteDao.getInvites(email, maxItems, skipCount); } }
InviteManager { public Page<? extends Invite> getInvites(String email, int maxItems, long skipCount) throws ServerException { requireNonNull(email, "Required non-null email"); return inviteDao.getInvites(email, maxItems, skipCount); } @Inject  InviteManager(
      PermissionsManager permissionsManager,
      UserManager userManager,
      InviteDao inviteDao,
      EventService eventService); }
InviteManager { public Page<? extends Invite> getInvites(String email, int maxItems, long skipCount) throws ServerException { requireNonNull(email, "Required non-null email"); return inviteDao.getInvites(email, maxItems, skipCount); } @Inject  InviteManager(
      PermissionsManager permissionsManager,
      UserManager userManager,
      InviteDao inviteDao,
      EventService eventService); @Transactional(rollbackOn = {RuntimeException.class, ServerException.class}) void store(Invite invite); Invite getInvite(String domainId, String instanceId, String email); Page<? extends Invite> getInvites(String email, int maxItems, long skipCount); Page<? extends Invite> getInvites(
      String domainId, String instanceId, long skipCount, int maxItems); void remove(String domainId, String instanceId, String email); }
InviteManager { public Page<? extends Invite> getInvites(String email, int maxItems, long skipCount) throws ServerException { requireNonNull(email, "Required non-null email"); return inviteDao.getInvites(email, maxItems, skipCount); } @Inject  InviteManager(
      PermissionsManager permissionsManager,
      UserManager userManager,
      InviteDao inviteDao,
      EventService eventService); @Transactional(rollbackOn = {RuntimeException.class, ServerException.class}) void store(Invite invite); Invite getInvite(String domainId, String instanceId, String email); Page<? extends Invite> getInvites(String email, int maxItems, long skipCount); Page<? extends Invite> getInvites(
      String domainId, String instanceId, long skipCount, int maxItems); void remove(String domainId, String instanceId, String email);  }