aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorKseniya Tomskikh <ktomskih@datamonsters.co>2017-10-04 18:29:52 +0700
committerKseniya Tomskikh <ktomskih@datamonsters.co>2017-10-04 18:29:52 +0700
commitc5462a496aeb4d43f023bb427bf12fc87b482b61 (patch)
treed70b3624a66203716e27939db90d9ed695955c63 /src/test
parenta813bb68eb3a63e8eeab5d8fb3db36472296f1db (diff)
downloadrest-query-c5462a496aeb4d43f023bb427bf12fc87b482b61.tar.gz
rest-query-c5462a496aeb4d43f023bb427bf12fc87b482b61.tar.bz2
rest-query-c5462a496aeb4d43f023bb427bf12fc87b482b61.zip
Deleted duplicate spray format and fixed reply of patient eligible trial service
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientLabelFormatSuite.scala20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientLabelFormatSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientLabelFormatSuite.scala
index ffb1bd4..3ef286d 100644
--- a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientLabelFormatSuite.scala
+++ b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientLabelFormatSuite.scala
@@ -34,26 +34,6 @@ class PatientLabelFormatSuite extends FlatSpec with Matchers {
parsedUpdatePatientLabel should be(expectedUpdatedPatientLabel)
}
- "Json format for PatientLabel" should "read and write correct JSON" in {
- import patientlabel._
- val orig = PatientLabel(
- id = LongId(1),
- patientId = UuidId("748b5884-3528-4cb9-904b-7a8151d6e343"),
- labelId = LongId(20),
- primaryValue = Some(FuzzyValue.Yes),
- verifiedPrimaryValue = None,
- isVisible = true,
- score = 1,
- isImplicitMatch = false
- )
- val writtenJson = patientLabelWriter.write(orig)
-
- writtenJson should be (
- """{"id":1,"labelId":20,"primaryValue":"Yes","verifiedPrimaryValue":null,"isVisible":true,
- "score":1,"isImplicitMatch":false}""".parseJson)
- }
-
-
"Json format for PatientLabelEvidence" should "read and write correct JSON" in {
import patientlabel._
val orig = PatientLabelEvidenceView(