Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Selvakumar Kamatchinathan
amp-t2d-property-registry
Commits
9b6b41d9
Unverified
Commit
9b6b41d9
authored
Apr 08, 2019
by
Selvakumar Kamatchinathan
Committed by
GitHub
Apr 08, 2019
Browse files
test update for newly created fields
parent
44501a24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/test/java/uk/ac/ebi/ampt2d/registry/PropertyRegistryServiceApplicationTests.java
...t2d/registry/PropertyRegistryServiceApplicationTests.java
+4
-3
No files found.
src/test/java/uk/ac/ebi/ampt2d/registry/PropertyRegistryServiceApplicationTests.java
View file @
9b6b41d9
...
...
@@ -138,12 +138,13 @@ public class PropertyRegistryServiceApplicationTests {
String
location
=
postTestPhenotype
();
mockMvc
.
perform
(
patch
(
location
).
with
(
oAuthHelper
.
bearerToken
(
"testEditor@gmail.com"
))
.
content
(
"{\"id\":\"BMI\","
+
"\"phenotypeGroup\":\"RENAL\"}"
))
.
content
(
"{\"id\":\"BMI\","
+
"\"phenotypeGroup\":\"RENAL\"
,"
+
"\"allowedValues\":\"nn.nnnn\"
}"
))
.
andExpect
(
status
().
is2xxSuccessful
());
mockMvc
.
perform
(
get
(
location
).
with
(
oAuthHelper
.
bearerToken
(
"testUser@gmail.com"
)))
.
andExpect
(
status
().
isOk
())
.
andExpect
(
jsonPath
(
"$.phenotypeGroup"
).
value
(
"RENAL"
));
.
andExpect
(
jsonPath
(
"$.phenotypeGroup"
).
value
(
"RENAL"
))
.
andExpect
(
jsonPath
(
"$.allowedValues"
).
value
(
"nn.nnnn"
));
}
@Test
...
...
@@ -333,4 +334,4 @@ public class PropertyRegistryServiceApplicationTests {
.
content
(
propertyContent
)).
andExpect
(
status
().
isCreated
());
}
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment