mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
DS-3489: Fixing tests after rebase part 1
This commit is contained in:
@@ -2,18 +2,18 @@
|
||||
* The contents of this file are subject to the license and copyright
|
||||
* detailed in the LICENSE and NOTICE files at the root of the source
|
||||
* tree and available online at
|
||||
* <p>
|
||||
*
|
||||
* http://www.dspace.org/license/
|
||||
*/
|
||||
package org.dspace.app.rest.converter.query;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.dspace.app.rest.model.query.RestSearchOperator;
|
||||
import org.dspace.app.rest.parameter.SearchFilter;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
public class SearchQueryConverter {
|
||||
|
||||
|
@@ -209,9 +209,8 @@ public class DiscoveryRestControllerIT extends AbstractControllerIntegrationTest
|
||||
.andExpect(jsonPath("$.name", is("author")))
|
||||
//The facetType has to be 'text' because that's how the author facet is configured by default
|
||||
.andExpect(jsonPath("$.facetType", is("text")))
|
||||
//Because we've constructed such a structure so that we have more than 2 (size) authors, there
|
||||
// needs to be a next link
|
||||
.andExpect(jsonPath("$._links.next.href", containsString("api/discover/facets/author?prefix=smith&page")))
|
||||
//We only request value starting with "smith", so we expect to only receive one page
|
||||
.andExpect(jsonPath("$._links.next").doesNotExist())
|
||||
//There always needs to be a self link
|
||||
.andExpect(jsonPath("$._links.self.href", containsString("api/discover/facets/author?prefix=smith")))
|
||||
//Because there are more authors than is represented (because of the size param), hasMore has to
|
||||
|
@@ -95,7 +95,7 @@ public class AbstractControllerIntegrationTest extends AbstractIntegrationTestWi
|
||||
|
||||
DefaultMockMvcBuilder mockMvcBuilder = webAppContextSetup(webApplicationContext)
|
||||
//Always log the response to debug
|
||||
.alwaysDo(MockMvcResultHandlers.log())
|
||||
.alwaysDo(MockMvcResultHandlers.print())
|
||||
//Add all filter implementations
|
||||
.addFilters(new ErrorPageFilter())
|
||||
.addFilters(requestFilters.toArray(new Filter[requestFilters.size()]));
|
||||
|
Reference in New Issue
Block a user