diff options
author | Jakob Odersky <jakob@driver.xyz> | 2017-09-06 15:08:54 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@driver.xyz> | 2017-09-06 15:08:54 -0700 |
commit | cb3992db49f7c73f37c2489d4225d10055a3cb5a (patch) | |
tree | db5a1e344808c269a1e6e4bf0a4fdbe0cc04b266 /src | |
parent | ea0884b02daa719a6936abe6b15bc80d9a80a71f (diff) | |
download | rest-query-0.3.9.tar.gz rest-query-0.3.9.tar.bz2 rest-query-0.3.9.zip |
Fix testsv0.3.9
Diffstat (limited to 'src')
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/DocumentIssueFormatSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/DocumentIssueFormatSuite.scala index 1a8e3f0..c4c9f7c 100644 --- a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/DocumentIssueFormatSuite.scala +++ b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/DocumentIssueFormatSuite.scala @@ -22,10 +22,10 @@ class DocumentIssueFormatSuite extends FlatSpec with Matchers { startPage = Some(1.0), endPage = Some(2.0) ) - val writtenJson = documentIssueWriter.write(documentIssue) + val writtenJson = documentIssueFormat.write(documentIssue) writtenJson should be( - """{"id":10,"userId":"userId-001","lastUpdate":"2017-08-10T18:00Z","isDraft":false, + """{"id":10,"userId":"userId-001","documentId":1,"lastUpdate":"2017-08-10T18:00Z","isDraft":false, "text":"message text","archiveRequired":false,"startPage":1.0,"endPage":2.0}""".parseJson) val createDocumentIssueJson = """{"text":"message text","startPage":1.0,"endPage":2.0}""".parseJson diff --git a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/MedicalRecordIssueFormatSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/MedicalRecordIssueFormatSuite.scala index 9b89c97..c23ca37 100644 --- a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/MedicalRecordIssueFormatSuite.scala +++ b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/MedicalRecordIssueFormatSuite.scala @@ -22,10 +22,10 @@ class MedicalRecordIssueFormatSuite extends FlatSpec with Matchers { startPage = Some(1.0), endPage = Some(2.0) ) - val writtenJson = recordIssueWriter.write(recordIssue) + val writtenJson = recordIssueFormat.write(recordIssue) writtenJson should be( - """{"id":10,"userId":"userId-001","lastUpdate":"2017-08-10T18:00Z","isDraft":false, + """{"id":10,"recordId":1,"userId":"userId-001","lastUpdate":"2017-08-10T18:00Z","isDraft":false, "text":"message text","archiveRequired":false,"startPage":1.0,"endPage":2.0}""".parseJson) val createRecordIssueJson = """{"text":"message text","startPage":1.0,"endPage":2.0}""".parseJson |