Clover Coverage Report - KS LUM 1.2-SNAPSHOT (Aggregated)
Coverage timestamp: Thu Mar 3 2011 05:26:43 EST
../../../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
12   34   1   12
0   27   0.08   1
1     1  
1    
 
  MockSearchDispatcher       Line # 12 12 0% 1 0 100% 1.0
 
  (2)
 
1    package org.kuali.student.lum.course.service.impl;
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  157 toggle @Override
16    public SearchResult dispatchSearch (SearchRequest searchRequest)
17    {
18  157 SearchResult result = new SearchResult ();
19  157 List<SearchResultRow> rows = new ArrayList ();
20  157 SearchResultRow row = new SearchResultRow ();
21  157 rows.add (row);
22  157 SearchResultCell cell = new SearchResultCell ();
23  157 cell.setKey ("mockKey");
24  157 cell.setValue ("mockValue");
25  157 List<SearchResultCell> cells = new ArrayList ();
26  157 cells.add (cell);
27  157 row.setCells (cells);
28  157 result.setRows (rows);
29    // System.out.println ("Generating mock search result for " + searchRequest.getSearchKey ());
30  157 return result;
31    }
32   
33   
34    }