* Tests searchSubmissions method
* @throws Exception to JUnit
*/
public void testSearchSubmissions5() throws Exception {
List submissions = null;
SubmissionCriteria criteria = new SubmissionCriteria();
criteria.setTimeEnd(submission3.getSubmitDate());
criteria.setTimeStart(null);
submissions = persistence.searchSubmissions(criteria, 0, 100);
checkSubmissions(Arrays.asList(new Object[] {submission1, submission3}), submissions);
criteria.setTimeStart(submission3.getSubmitDate());
criteria.setTimeEnd(null);
submissions = persistence.searchSubmissions(criteria, 0, 100);
checkSubmissions(Arrays.asList(new Object[] {submission3, submission4}), submissions);
criteria.setTimeStart(submission1.getSubmitDate());
criteria.setTimeEnd(submission3.getSubmitDate());
submissions = persistence.searchSubmissions(criteria, 0, 100);
checkSubmissions(Arrays.asList(new Object[] {submission1, submission3}), submissions);
criteria.setTimeEnd(new Date(-1000));
criteria.setTimeStart(null);
submissions = persistence.searchSubmissions(criteria, 0, 100);
checkSubmissions(new ArrayList(), submissions);
criteria.setTimeStart(new Date(submission4.getSubmitDate().getTime() + 1000));
criteria.setTimeEnd(null);
submissions = persistence.searchSubmissions(criteria, 0, 100);
checkSubmissions(new ArrayList(), submissions);
criteria.setTimeStart(submission3.getSubmitDate());
criteria.setTimeEnd(submission1.getSubmitDate());
submissions = persistence.searchSubmissions(criteria, 0, 100);
checkSubmissions(new ArrayList(), submissions);
}