Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
b908f19a
Commit
b908f19a
authored
1 year ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
docs updated
parent
fb200b23
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1755
Devel 17.1.0
,
!1648
Draft: Resolve "downloadModel API call with polygonString should allow including/excluding border reactions"
Pipeline
#85036
failed
1 year ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/src/test/java/lcsb/mapviewer/web/MapControllerIntegrationTestWithGlyph.java
+5
-4
5 additions, 4 deletions
.../mapviewer/web/MapControllerIntegrationTestWithGlyph.java
with
5 additions
and
4 deletions
web/src/test/java/lcsb/mapviewer/web/MapControllerIntegrationTestWithGlyph.java
+
5
−
4
View file @
b908f19a
...
@@ -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
());
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment