1 package org.kuali.student.lum.course.service.impl;
2
3 import java.util.ArrayList;
4 import java.util.List;
5 import org.kuali.student.core.search.dto.SearchRequest;
6 import org.kuali.student.core.search.dto.SearchResult;
7 import org.kuali.student.core.search.dto.SearchResultCell;
8 import org.kuali.student.core.search.dto.SearchResultRow;
9 import org.kuali.student.core.search.service.SearchDispatcher;
10
11 public class MockSearchDispatcher implements SearchDispatcher
12 {
13
14 @Override
15 public SearchResult dispatchSearch (SearchRequest searchRequest)
16 {
17 SearchResult result = new SearchResult ();
18 List<SearchResultRow> rows = new ArrayList ();
19 SearchResultRow row = new SearchResultRow ();
20 rows.add (row);
21 SearchResultCell cell = new SearchResultCell ();
22 cell.setKey ("mockKey");
23 cell.setValue ("mockValue");
24 List<SearchResultCell> cells = new ArrayList ();
25 cells.add (cell);
26 row.setCells (cells);
27 result.setRows (rows);
28
29 return result;
30 }
31
32
33 }