Skip to content
Snippets Groups Projects
Commit b908f19a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

docs updated

parent fb200b23
No related branches found
No related tags found
2 merge requests!1755Devel 17.1.0,!1648Draft: Resolve "downloadModel API call with polygonString should allow including/excluding border reactions"
Pipeline #85036 failed
...@@ -136,7 +136,7 @@ public class MapControllerIntegrationTestWithGlyph extends ControllerIntegration ...@@ -136,7 +136,7 @@ public class MapControllerIntegrationTestWithGlyph extends ControllerIntegration
int mapId = (int) result.get("idObject"); int mapId = (int) result.get("idObject");
assertEquals((int) map.getId(), mapId); assertEquals(map.getId(), mapId);
} }
@Test @Test
...@@ -189,6 +189,8 @@ public class MapControllerIntegrationTestWithGlyph extends ControllerIntegration ...@@ -189,6 +189,8 @@ public class MapControllerIntegrationTestWithGlyph extends ControllerIntegration
+ projectSnippets.getParsers()), + projectSnippets.getParsers()),
parameterWithName("polygonString").description("polygon defining part of the model to be downloaded") parameterWithName("polygonString").description("polygon defining part of the model to be downloaded")
.optional(), .optional(),
parameterWithName("strictCutoff").description("must the reactions be inside polygon (default: true)")
.optional(),
parameterWithName("elementIds").description("list of element ids that should be included in the output") parameterWithName("elementIds").description("list of element ids that should be included in the output")
.optional(), .optional(),
parameterWithName("reactionIds").description("list of reaction ids that should be included in the output") parameterWithName("reactionIds").description("list of reaction ids that should be included in the output")
...@@ -201,14 +203,13 @@ public class MapControllerIntegrationTestWithGlyph extends ControllerIntegration ...@@ -201,14 +203,13 @@ public class MapControllerIntegrationTestWithGlyph extends ControllerIntegration
RequestBuilder request = get("/api/projects/{projectId}/models/{mapId}:downloadModel?" RequestBuilder request = get("/api/projects/{projectId}/models/{mapId}:downloadModel?"
+ "handlerClass=" + CellDesignerXmlParser.class.getCanonicalName() + "handlerClass=" + CellDesignerXmlParser.class.getCanonicalName()
+ "&polygonString=0,0;100,0;0,100", TEST_PROJECT, map.getId()) + "&polygonString=0,0;100,0;0,100&strictCutoff=false", TEST_PROJECT, map.getId())
.session(session); .session(session);
mockMvc.perform(request) mockMvc.perform(request)
.andDo(document("projects/project_maps/download_from_polygon", .andDo(document("projects/project_maps/download_from_polygon",
downloadModelRequestParameters(), downloadModelRequestParameters(),
pathParameters(parameterWithName("projectId").description("project identifier"), getMapPathParameters()))
parameterWithName("mapId").description("map identifier"))))
.andExpect(status().is2xxSuccessful()); .andExpect(status().is2xxSuccessful());
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment