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 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (13) |
Complexity: 1 |
Complexity Density: 0.08 |
|
12 |
|
public class MockSearchDispatcher implements SearchDispatcher |
13 |
|
{ |
14 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (12) |
Complexity: 1 |
Complexity Density: 0.08 |
|
15 |
157
|
@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 |
|
|
30 |
157
|
return result; |
31 |
|
} |
32 |
|
|
33 |
|
|
34 |
|
} |