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 @Override
16 public SearchResult dispatchSearch (SearchRequest searchRequest)
17 {
18 SearchResult result = new SearchResult ();
19 List<SearchResultRow> rows = new ArrayList ();
20 SearchResultRow row = new SearchResultRow ();
21 rows.add (row);
22 SearchResultCell cell = new SearchResultCell ();
23 cell.setKey ("mockKey");
24 cell.setValue ("mockValue");
25 List<SearchResultCell> cells = new ArrayList ();
26 cells.add (cell);
27 row.setCells (cells);
28 result.setRows (rows);
29
30 return result;
31 }
32
33
34 }