Commit 938d2ae9 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unit test fixed

parent 54220240
......@@ -37,6 +37,7 @@ import lcsb.mapviewer.converter.model.celldesigner.CellDesignerXmlParser;
import lcsb.mapviewer.converter.model.sbgnml.SbgnmlXmlConverter;
import lcsb.mapviewer.model.Project;
import lcsb.mapviewer.model.map.model.ModelData;
import lcsb.mapviewer.model.map.species.Element;
import lcsb.mapviewer.model.security.PrivilegeType;
import lcsb.mapviewer.model.user.User;
import lcsb.mapviewer.services.interfaces.IModelService;
......@@ -488,8 +489,10 @@ public class MapControllerIntegrationTest extends ControllerIntegrationTest {
public void testSearchBioEntitiesOnEverySubmap() throws Exception {
userService.grantUserPrivilege(anonymous, PrivilegeType.READ_PROJECT, project.getProjectId());
Element element = map.getElements().iterator().next();
RequestBuilder request = get(
"/projects/{projectId}/models/{mapId}/bioEntities:search?query=s1", TEST_PROJECT, "*");
"/projects/{projectId}/models/{mapId}/bioEntities:search?query=" + element.getElementId(), TEST_PROJECT, "*");
mockMvc.perform(request)
.andDo(document("projects/project_maps/search_by_query",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment