diff options
author | Kseniya Tomskikh <ktomskih@datamonsters.co> | 2018-01-10 12:09:10 +0700 |
---|---|---|
committer | Kseniya Tomskikh <ktomskih@datamonsters.co> | 2018-01-10 12:09:10 +0700 |
commit | 7d9c3a7a0de129eef06d5b2eac92aafec1229098 (patch) | |
tree | 74c839223186e73c017b2e07a5cd43e9754498e5 /src/test/scala | |
parent | 2456ac8336df69734890b325b0b2a5a1182e93e2 (diff) | |
parent | 5bbb0bc66db5b49eb0e3f197be17798fb8093f2a (diff) | |
download | rest-query-7d9c3a7a0de129eef06d5b2eac92aafec1229098.tar.gz rest-query-7d9c3a7a0de129eef06d5b2eac92aafec1229098.tar.bz2 rest-query-7d9c3a7a0de129eef06d5b2eac92aafec1229098.zip |
Merge branch 'master' into PDSUI-2432
Diffstat (limited to 'src/test/scala')
-rw-r--r-- | src/test/scala/xyz/driver/pdsuidomain/formats/json/TrialIssueFormatSuite.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/scala/xyz/driver/pdsuidomain/formats/json/TrialIssueFormatSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/formats/json/TrialIssueFormatSuite.scala index a3b5931..a13e097 100644 --- a/src/test/scala/xyz/driver/pdsuidomain/formats/json/TrialIssueFormatSuite.scala +++ b/src/test/scala/xyz/driver/pdsuidomain/formats/json/TrialIssueFormatSuite.scala @@ -26,6 +26,7 @@ class TrialIssueFormatSuite extends FlatSpec with Matchers { writtenJson should be("""{"id":10,"userId":"userId-001","lastUpdate":"2017-08-10T18:00Z","isDraft":false, "text":"message text","evidence":"evidence","archiveRequired":false,"meta":"{}"}""".parseJson) + trialIssueReader(StringId("NCT000001")).read(writtenJson) shouldBe trialIssue val createTrialIssueJson = """{"text":"message text","evidence":"evidence","meta":"{}"}""".parseJson val expectedCreatedTrialIssue = trialIssue.copy(id = LongId(0), lastUpdate = LocalDateTime.MIN, isDraft = true) |