diff options
author | ktomskikh <ktomskih@datamonsters.co> | 2017-09-15 16:00:06 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-15 16:00:06 +0700 |
commit | b9f3ab180253c346664f4f38b418dc96f54bdc31 (patch) | |
tree | 54ac3c61383ccf41ae95e60d5abbf8b2447ede8f /src/test/scala/xyz/driver/pdsuidomain/formats/json | |
parent | f1f9740b7d301c4e7cc7c5c2e38f7661ea0cfbb5 (diff) | |
parent | 44c94efb464245544191524925d6d328386543e1 (diff) | |
download | rest-query-b9f3ab180253c346664f4f38b418dc96f54bdc31.tar.gz rest-query-b9f3ab180253c346664f4f38b418dc96f54bdc31.tar.bz2 rest-query-b9f3ab180253c346664f4f38b418dc96f54bdc31.zip |
Merge pull request #25 from drivergroup/PDSUI-2273v0.3.12
PDSUI-2273 Renamed intervention.originalDescription to originalDosage
Diffstat (limited to 'src/test/scala/xyz/driver/pdsuidomain/formats/json')
-rw-r--r-- | src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/InterventionFormatSuite.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/InterventionFormatSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/InterventionFormatSuite.scala index 18c790a..0f01d4a 100644 --- a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/InterventionFormatSuite.scala +++ b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/InterventionFormatSuite.scala @@ -17,7 +17,7 @@ class InterventionFormatSuite extends FlatSpec with Matchers { typeId = Some(LongId(10)), originalType = Some("orig type"), dosage = "", - originalDescription = "", + originalDosage = "", isActive = true ) val arms = List( @@ -33,7 +33,7 @@ class InterventionFormatSuite extends FlatSpec with Matchers { writtenJson should be( """{"id":1,"name":"intervention name","typeId":10,"dosage":"","isActive":true,"arms":[20,21,22], - "trialId":"NCT000001","originalName":"orig name","originalDescription":"","originalType":"orig type"}""".parseJson) + "trialId":"NCT000001","originalName":"orig name","originalDosage":"","originalType":"orig type"}""".parseJson) val updateInterventionJson = """{"dosage":"descr","arms":[21,22]}""".parseJson val expectedUpdatedIntervention = orig.copy( |