aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorJakob Odersky <jakob@driver.xyz>2017-11-20 21:04:06 -0800
committerJakob Odersky <jakob@driver.xyz>2017-11-20 21:04:06 -0800
commit5c50fd8f9eb4588e8f2c7ea5b84822e224b222e5 (patch)
treefb8aaac178c568e6ec9058c06b8200b214934af9 /src/test
parent92df74ed76b7a06dbe1405fc496f3f650709e75f (diff)
downloadrest-query-5c50fd8f9eb4588e8f2c7ea5b84822e224b222e5.tar.gz
rest-query-5c50fd8f9eb4588e8f2c7ea5b84822e224b222e5.tar.bz2
rest-query-5c50fd8f9eb4588e8f2c7ea5b84822e224b222e5.zip
Nest format
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientEligibleTrialFormatSuite.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientEligibleTrialFormatSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientEligibleTrialFormatSuite.scala
index 0a83c62..9695c2d 100644
--- a/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientEligibleTrialFormatSuite.scala
+++ b/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientEligibleTrialFormatSuite.scala
@@ -59,7 +59,7 @@ class PatientEligibleTrialFormatSuite extends FlatSpec with Matchers {
"verifiedEligibilityStatus":"Yes","trialId":"NCT000001","eligibilityStatus":"Yes","id":1},
"arms":[{"patientCriterionId":1,"armId":31,"armName":"arm 31"},{"patientCriterionId":1,"armId":32,"armName":"arm 32"}]}""".parseJson)
- val updatePatientEligibleTrialJson = """{"isVerified":true}""".parseJson
+ val updatePatientEligibleTrialJson = """{"group":{"isVerified":true}}""".parseJson
val expectedUpdatedPatientTrialArmGroup = group.copy(isVerified = true)
val parsedUpdatePatientTrialArmGroup = applyUpdateToTrialArmGroup(updatePatientEligibleTrialJson, group)
parsedUpdatePatientTrialArmGroup should be(expectedUpdatedPatientTrialArmGroup)