aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientIssueFormatSuite.scala
diff options
context:
space:
mode:
authorKseniya Tomskikh <ktomskih@datamonsters.co>2017-10-11 16:56:06 +0700
committerGitHub <noreply@github.com>2017-10-11 16:56:06 +0700
commit3375f1beeab7af9a6732d6fce8762c3a3038e1f3 (patch)
treee4f1ad85a2ea17c76bcc844420d5f97bfd116e23 /src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientIssueFormatSuite.scala
parentbbbcaf35a6081dba24dbb9a9aeb9d25fc2ca60be (diff)
parent85c78f58f0428d13795aa0419ff42471513a34d6 (diff)
downloadrest-query-3375f1beeab7af9a6732d6fce8762c3a3038e1f3.tar.gz
rest-query-3375f1beeab7af9a6732d6fce8762c3a3038e1f3.tar.bz2
rest-query-3375f1beeab7af9a6732d6fce8762c3a3038e1f3.zip
Merge pull request #37 from drivergroup/add-slot-eligibility-armsv0.8.1
Add slot eligibility arms
Diffstat (limited to 'src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientIssueFormatSuite.scala')
-rw-r--r--src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientIssueFormatSuite.scala9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientIssueFormatSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientIssueFormatSuite.scala
index 1e2a11e..2776dcc 100644
--- a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientIssueFormatSuite.scala
+++ b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/PatientIssueFormatSuite.scala
@@ -22,13 +22,14 @@ class PatientIssueFormatSuite extends FlatSpec with Matchers {
)
val writtenJson = patientIssueWriter.write(patientIssue)
- writtenJson should be(
- """{"id":10,"userId":"userId-001","lastUpdate":"2017-08-10T18:00Z","isDraft":false,
+ writtenJson should be("""{"id":10,"userId":"userId-001","lastUpdate":"2017-08-10T18:00Z","isDraft":false,
"text":"message text","archiveRequired":false}""".parseJson)
- val createPatientIssueJson = """{"text":"message text"}""".parseJson
+ val createPatientIssueJson = """{"text":"message text"}""".parseJson
val expectedCreatedPatientIssue = patientIssue.copy(id = LongId(0), lastUpdate = LocalDateTime.MIN, isDraft = true)
- val parsedCreatePatientIssue = jsValueToPatientIssue(createPatientIssueJson, UuidId("40892a07-c638-49d2-9795-1edfefbbcc7c"), StringId("userId-001"))
+ val parsedCreatePatientIssue = jsValueToPatientIssue(createPatientIssueJson,
+ UuidId("40892a07-c638-49d2-9795-1edfefbbcc7c"),
+ StringId("userId-001"))
parsedCreatePatientIssue should be(expectedCreatedPatientIssue)
val updatePatientIssueJson =