@Test public void getEventsAcceptsNullTemplate() { this.store.getEvents(null, null, null, 0, 0); Mockito.verify(this.criteria, Mockito.never()).add(Matchers.any()); }
private List<AuditEvent> getEvents(User user, String ip, String type, DocumentReference entity) { return getEvents(new AuditEvent(user, ip, type, null, entity, null), null, null, 0, 0); }
HibernateAuditStore implements AuditStore { private List<AuditEvent> getEvents(User user, String ip, String type, DocumentReference entity) { return getEvents(new AuditEvent(user, ip, type, null, entity, null), null, null, 0, 0); } }
HibernateAuditStore implements AuditStore { private List<AuditEvent> getEvents(User user, String ip, String type, DocumentReference entity) { return getEvents(new AuditEvent(user, ip, type, null, entity, null), null, null, 0, 0); }  }
HibernateAuditStore implements AuditStore { private List<AuditEvent> getEvents(User user, String ip, String type, DocumentReference entity) { return getEvents(new AuditEvent(user, ip, type, null, entity, null), null, null, 0, 0); }  @Override void store(AuditEvent event); @Override List<AuditEvent> getEventsForEntity(DocumentReference entity); @Override List<AuditEvent> getEventsForEntity(DocumentReference entity, String type); @Override List<AuditEvent> getEventsForUser(User user); @Override List<AuditEvent> getEventsForUser(User user, String ip); @Override List<AuditEvent> getEventsForUser(User user, String ip, String type); @Override List<AuditEvent> getEvents(AuditEvent eventTemplate, Calendar fromTime, Calendar toTime, int start,
        int maxResults); @Override long countEventsForEntity(DocumentReference entity); @Override long countEventsForEntity(DocumentReference entity, String type); @Override long countEventsForUser(User user); @Override long countEventsForUser(User user, String ip); @Override long countEventsForUser(User user, String ip, String type); @Override long countEvents(AuditEvent eventTemplate, Calendar fromTime, Calendar toTime); }
HibernateAuditStore implements AuditStore { private List<AuditEvent> getEvents(User user, String ip, String type, DocumentReference entity) { return getEvents(new AuditEvent(user, ip, type, null, entity, null), null, null, 0, 0); }  @Override void store(AuditEvent event); @Override List<AuditEvent> getEventsForEntity(DocumentReference entity); @Override List<AuditEvent> getEventsForEntity(DocumentReference entity, String type); @Override List<AuditEvent> getEventsForUser(User user); @Override List<AuditEvent> getEventsForUser(User user, String ip); @Override List<AuditEvent> getEventsForUser(User user, String ip, String type); @Override List<AuditEvent> getEvents(AuditEvent eventTemplate, Calendar fromTime, Calendar toTime, int start,
        int maxResults); @Override long countEventsForEntity(DocumentReference entity); @Override long countEventsForEntity(DocumentReference entity, String type); @Override long countEventsForUser(User user); @Override long countEventsForUser(User user, String ip); @Override long countEventsForUser(User user, String ip, String type); @Override long countEvents(AuditEvent eventTemplate, Calendar fromTime, Calendar toTime);  }