Clover Coverage Report - Kuali Student 1.2-M2-SNAPSHOT (Aggregated)
Coverage timestamp: Fri Apr 22 2011 04:03:20 EST
../../../../../../img/srcFileCovDistChart0.png 53% of files have more coverage
12   34   1   12
0   27   0.08   1
1     1  
1    
 
  MockSearchDispatcher       Line # 12 12 0% 1 13 0% 0.0
 
No Tests
 
1    package org.kuali.student.core.dictionary.service;
2   
3    import java.util.ArrayList;
4    import java.util.List;
5   
6    import org.kuali.student.common.search.dto.SearchRequest;
7    import org.kuali.student.common.search.dto.SearchResult;
8    import org.kuali.student.common.search.dto.SearchResultCell;
9    import org.kuali.student.common.search.dto.SearchResultRow;
10    import org.kuali.student.common.search.service.SearchDispatcher;
11   
 
12    public class MockSearchDispatcher implements SearchDispatcher
13    {
14   
 
15  0 toggle @Override
16    public SearchResult dispatchSearch (SearchRequest searchRequest)
17    {
18  0 SearchResult result = new SearchResult ();
19  0 List<SearchResultRow> rows = new ArrayList ();
20  0 SearchResultRow row = new SearchResultRow ();
21  0 rows.add (row);
22  0 SearchResultCell cell = new SearchResultCell ();
23  0 cell.setKey ("mockKey");
24  0 cell.setValue ("mockValue");
25  0 List<SearchResultCell> cells = new ArrayList ();
26  0 cells.add (cell);
27  0 row.setCells (cells);
28  0 result.setRows (rows);
29    // System.out.println ("Generating mock search result for " + searchRequest.getSearchKey ());
30  0 return result;
31    }
32   
33   
34    }