aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAleksandr <ognelisar@gmail.com>2017-10-24 11:33:55 +0700
committerAleksandr <ognelisar@gmail.com>2017-10-24 11:33:55 +0700
commit3c2a7fdfccc87cb8ec9e8e48c31c622555078c54 (patch)
treeede0fd78b126054aba6bf2dea1b6b1d63a41e825 /src/test
parent7f8b3b9621ad31328dd135a67152f97e0419d5c9 (diff)
downloadrest-query-3c2a7fdfccc87cb8ec9e8e48c31c622555078c54.tar.gz
rest-query-3c2a7fdfccc87cb8ec9e8e48c31c622555078c54.tar.bz2
rest-query-3c2a7fdfccc87cb8ec9e8e48c31c622555078c54.zip
Added field 'inclusion' to ExportTrialLabelCriterion
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/ExportFormatSuite.scala12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/ExportFormatSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/ExportFormatSuite.scala
index d78e754..767f832 100644
--- a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/ExportFormatSuite.scala
+++ b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/ExportFormatSuite.scala
@@ -92,7 +92,8 @@ class ExportFormatSuite extends FlatSpec with Matchers {
armIds = Set(LongId(1), LongId(2)),
criteria = "criteria 10 text",
isCompound = false,
- isDefining = false
+ isDefining = false,
+ inclusion = Some(false)
),
ExportTrialLabelCriterion(
criterionId = LongId(11),
@@ -101,7 +102,8 @@ class ExportFormatSuite extends FlatSpec with Matchers {
armIds = Set(LongId(2)),
criteria = "criteria 11 text",
isCompound = true,
- isDefining = false
+ isDefining = false,
+ inclusion = None
)
)
val trialWithLabels = ExportTrialWithLabels(
@@ -117,8 +119,10 @@ class ExportFormatSuite extends FlatSpec with Matchers {
writtenJson should be(
"""{"nctId":"NCT000001","trialId":"40892a07-c638-49d2-9795-1edfefbbcc7c","lastReviewed":"2017-08-10T18:00Z",
"labelVersion":1,"arms":[{"armId":1,"armName":"arm 1","diseaseList":["Breast"]},{"armId":2,"armName":"arm 2","diseaseList":["Breast"]}],"criteria":[
- {"value":"Yes","labelId":21,"criterionId":10,"criterionText":"criteria 10 text","armIds":[1,2],"isCompound":false,"isDefining":false},
- {"value":"Unknown","labelId":21,"criterionId":11,"criterionText":"criteria 11 text","armIds":[2],"isCompound":true,"isDefining":false}]}""".parseJson)
+ {"value":"Yes","labelId":21,"criterionId":10,"criterionText":"criteria 10 text","armIds":[1,2],"isCompound":false,
+ "isDefining":false,"inclusion":false},
+ {"value":"Unknown","labelId":21,"criterionId":11,"criterionText":"criteria 11 text","armIds":[2],"isCompound":true,
+ "isDefining":false,"inclusion":null}]}""".parseJson)
}
}