View Javadoc

1   package org.kuali.student.r2.common.search;
2   
3   import org.junit.Test;
4   import org.kuali.student.r2.common.dto.ContextInfo;
5   import org.kuali.student.r2.common.exceptions.MissingParameterException;
6   import org.kuali.student.r2.common.exceptions.OperationFailedException;
7   import org.kuali.student.r2.common.exceptions.PermissionDeniedException;
8   import org.kuali.student.r2.core.search.dto.SearchRequestInfo;
9   import org.kuali.student.r2.core.search.dto.SearchResultInfo;
10  
11  import static org.junit.Assert.assertNotNull;
12  import org.kuali.student.r2.common.exceptions.InvalidParameterException;
13  
14  public class TestCrossSearch {
15  
16  	@Test
17  	public void testCrossSearchUnion() throws MissingParameterException, PermissionDeniedException, OperationFailedException, InvalidParameterException {
18  		MockSearch search = new MockSearch();
19  		SearchRequestInfo searchRequest = new SearchRequestInfo();
20  		searchRequest.setSearchKey("test.crossSearch");
21  		SearchResultInfo result = search.search(searchRequest, new ContextInfo());
22  		assertNotNull(result);
23  	}
24  }