diff options
author | Aleksandr <ognelisar@gmail.com> | 2017-12-06 15:05:54 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-06 15:05:54 +0700 |
commit | 51d5d1ddba83f539405c6d395933e1f8a456c871 (patch) | |
tree | 21cb0ee82567e72ba8314e19f896a62407932def /src/test | |
parent | ed8db038b3b74e0089fe3415d4e3df5ceb882d86 (diff) | |
parent | 4d07f7cdb4df601398f982dd1df895304c554566 (diff) | |
download | rest-query-51d5d1ddba83f539405c6d395933e1f8a456c871.tar.gz rest-query-51d5d1ddba83f539405c6d395933e1f8a456c871.tar.bz2 rest-query-51d5d1ddba83f539405c6d395933e1f8a456c871.zip |
Merge pull request #72 from drivergroup/PDSUI-2396
PDSUI-2396 Fixed RestTrialService singleAction method
Diffstat (limited to 'src/test')
-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) |