@Override public Set<Response> match(Set<Response> responses) { Set<Response> match = new HashSet<Response>(); for (Response response : responses) { if (isMatchedDateId(response.getOptionId())) { match.add(response); } } return match; }
private Set<Response> theResponses(final ScheduleEvent event) { Set<Response> responses = new HashSet<Response>(2); Response response = new Response(); response.setId("ff808081369cf58901369cf8b45d0006"); response.setOptionId("ff808081369cf58901369cf88a3d0001"); response.setUserId(0); response.setScheduleEvent(event); responses.add(response); response = new Response(); response.setId("ff808081369cf58901369cf90b410009"); response.setOptionId("ff808081369cf58901369cf88a3d0001"); response.setUserId(2); response.setScheduleEvent(event); responses.add(response); return responses; }