public void testFetchSearchResults4() {
   parentLetter = true;
   FakeRenderRequest request = new FakeRenderRequest();
   KaiserSearchRequest ksReq = new KaiserSearchRequest();
   FakeSearchPortletHelper helper = new FakeSearchPortletHelper(request);
   helper.fetchSearchResults(ksReq);
   Object obj = request.getAttribute("SEARCH_GENERIC_VIEW_BEAN");
   Assert.assertNotNull(request.getAttribute("SEARCH_GENERIC_VIEW_BEAN"));
   Assert.assertNotNull(request.getAttribute(IPortletConstants.REQ_RESULTERROR));
   SearchCriteria criteria = (SearchCriteria) request.getAttribute("SEARCH_GENERIC_VIEW_BEAN");
   Assert.assertNull(criteria.getKeyword());
 }
  public void testFetchSearchResults8() {
    setSearchResults = true;
    FakeRenderRequest request = new FakeRenderRequest();
    request.setParameter(IPortletConstants.ACTION_SUBMITQUERY, "somevalue");

    KaiserSearchRequest ksReq = new KaiserSearchRequest();
    FakeSearchPortletHelper helper = new FakeSearchPortletHelper(request);
    helper.fetchSearchResults(ksReq);
    Assert.assertNotNull(request.getAttribute("SEARCH_GENERIC_VIEW_BEAN"));
    Assert.assertNotNull(request.getAttribute("FACETS_LIST"));
    Assert.assertNotNull(request.getAttribute("PAGINATION_LIST"));
    Assert.assertNotNull(request.getAttribute("BREADCRUMBS_LIST"));
    Assert.assertNotNull(request.getAttribute("RESULTS_LIST"));
  }
 public void testFetchSearchResults1() {
   FakeRenderRequest request = new FakeRenderRequest();
   KaiserSearchRequest ksReq = new KaiserSearchRequest();
   FakeSearchPortletHelper helper = new FakeSearchPortletHelper(request);
   helper.fetchSearchResults(ksReq);
   Assert.assertNotNull(request.getAttribute("SEARCH_GENERIC_VIEW_BEAN"));
 }
 public void testFetchSearchResults5() {
   exception = true;
   FakeRenderRequest request = new FakeRenderRequest();
   KaiserSearchRequest ksReq = new KaiserSearchRequest();
   FakeSearchPortletHelper helper = new FakeSearchPortletHelper(request);
   helper.fetchSearchResults(ksReq);
   Assert.assertNotNull(request.getAttribute(IPortletConstants.REQ_RESULTERROR));
 }
 public void testFetchSearchResults2() {
   searchSessionIdentifier = true;
   FakeRenderRequest request = new FakeRenderRequest();
   KaiserSearchRequest ksReq = new KaiserSearchRequest();
   FakeSearchPortletHelper helper = new FakeSearchPortletHelper(request);
   helper.fetchSearchResults(ksReq);
   Assert.assertNotNull(
       request
           .getPortletSession()
           .getAttribute(IPortletConstants.SESSION_PARAM_COOKIE_IDENTIFIER));
   Assert.assertNotNull(request.getAttribute(IPortletConstants.REQ_RESULTERROR));
 }