mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-2217 Filtering with special characters - fix backslash.
+review RM git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@106011 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,7 +25,6 @@ import static org.mockito.Matchers.anyString;
|
||||
import static org.mockito.Mockito.doReturn;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
@@ -119,7 +118,7 @@ public class UserSecurityClearanceGetUnitTest extends BaseWebScriptUnitTest
|
||||
}
|
||||
}).when(mockedSecurityClearanceService).getUsersSecurityClearance(any(UserQueryParams.class));
|
||||
|
||||
JSONObject response = executeJSONWebScript(new HashMap<String, String>());
|
||||
JSONObject response = executeJSONWebScript(buildParameters("nameFilter", "userName"));
|
||||
assertNotNull(response);
|
||||
|
||||
JSONObject data = response.getJSONObject("data");
|
||||
@@ -188,7 +187,7 @@ public class UserSecurityClearanceGetUnitTest extends BaseWebScriptUnitTest
|
||||
}
|
||||
}).when(mockedSecurityClearanceService).getUsersSecurityClearance(any(UserQueryParams.class));
|
||||
|
||||
JSONObject response = executeJSONWebScript(buildParameters("pageSize", Integer.toString(pageSize), "startIndex", Integer.toString(startIndex)));
|
||||
JSONObject response = executeJSONWebScript(buildParameters("nameFilter", "userName", "pageSize", Integer.toString(pageSize), "startIndex", Integer.toString(startIndex)));
|
||||
assertNotNull(response);
|
||||
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
|
Reference in New Issue
Block a user