Package cn.edu.zju.acm.onlinejudge.bean.request

Examples of cn.edu.zju.acm.onlinejudge.bean.request.SubmissionCriteria


   * Tests searchSubmissions method
   * @throws Exception to JUnit
   */
  public void testSearchSubmissions7() throws Exception {
    List submissions = null;
    SubmissionCriteria criteria = new SubmissionCriteria();   
   
    criteria.setJudgeReplies(Arrays.asList(new Object[] {judgeReply1, judgeReply3}));       
    submissions = persistence.searchSubmissions(criteria, 0, 100);
    checkSubmissions(Arrays.asList(new Object[] {submission1, submission3}), submissions);
   
    criteria.setJudgeReplies(Arrays.asList(new Object[] {judgeReply2}));       
    submissions = persistence.searchSubmissions(criteria, 0, 100);
    checkSubmissions(Arrays.asList(new Object[] {submission2, submission4}), submissions);   
           
    criteria.setJudgeReplies(Arrays.asList(new Object[] {
        new JudgeReply(4, "x", "x", "x", true)}));       
    submissions = persistence.searchSubmissions(criteria, 0, 100);
    checkSubmissions(new ArrayList(), submissions);
   
    criteria.setJudgeReplies(new ArrayList());       
    submissions = persistence.searchSubmissions(criteria, 0, 100);
    checkSubmissions(new ArrayList(), submissions);
   
 
View Full Code Here


            firstId = Utility.parseLong(serachForm.getFirstId());
        }

        int RUNS_PER_PAGE = 15;

        SubmissionCriteria criteria = serachForm.toSubmissionCriteria();

        if (isRejudge) {
            int maxN = 100;
            List<Submission> allRuns =
                    PersistenceManager.getInstance().getSubmissionPersistence().searchSubmissions(criteria, -1,
View Full Code Here

TOP

Related Classes of cn.edu.zju.acm.onlinejudge.bean.request.SubmissionCriteria

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.