diff options
author | ktomskikh <ktomskih@datamonsters.co> | 2017-09-14 16:31:52 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-14 16:31:52 +0700 |
commit | 1e2acbe4e5134fc5a2657adf9da1873b5c7000cb (patch) | |
tree | 16a0f2edcffe7fecc02ddd97212265a339b9b482 /src/test/scala/xyz/driver/pdsuidomain/formats | |
parent | cb3992db49f7c73f37c2489d4225d10055a3cb5a (diff) | |
parent | 2e2f9213a16bf5728f4615f927ba29536b3c20be (diff) | |
download | rest-query-1e2acbe4e5134fc5a2657adf9da1873b5c7000cb.tar.gz rest-query-1e2acbe4e5134fc5a2657adf9da1873b5c7000cb.tar.bz2 rest-query-1e2acbe4e5134fc5a2657adf9da1873b5c7000cb.zip |
Merge pull request #24 from drivergroup/PDSUI-2273
PDSUI-2273 Renamed intervention.description to dosage
Diffstat (limited to 'src/test/scala/xyz/driver/pdsuidomain/formats')
-rw-r--r-- | src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/InterventionFormatSuite.scala | 8 |
1 files changed, 4 insertions, 4 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 784a655..18c790a 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 @@ -16,7 +16,7 @@ class InterventionFormatSuite extends FlatSpec with Matchers { originalName = "orig name", typeId = Some(LongId(10)), originalType = Some("orig type"), - description = "", + dosage = "", originalDescription = "", isActive = true ) @@ -32,12 +32,12 @@ class InterventionFormatSuite extends FlatSpec with Matchers { val writtenJson = interventionWriter.write(orig) writtenJson should be( - """{"id":1,"name":"intervention name","typeId":10,"description":"","isActive":true,"arms":[20,21,22], + """{"id":1,"name":"intervention name","typeId":10,"dosage":"","isActive":true,"arms":[20,21,22], "trialId":"NCT000001","originalName":"orig name","originalDescription":"","originalType":"orig type"}""".parseJson) - val updateInterventionJson = """{"description":"descr","arms":[21,22]}""".parseJson + val updateInterventionJson = """{"dosage":"descr","arms":[21,22]}""".parseJson val expectedUpdatedIntervention = orig.copy( - intervention = intervention.copy(description = "descr"), + intervention = intervention.copy(dosage = "descr"), arms = List( InterventionArm(interventionId = intervention.id, armId = LongId(21)), InterventionArm(interventionId = intervention.id, armId = LongId(22)) |