diff options
author | Aleksandr <ognelisar@gmail.com> | 2017-10-20 09:46:28 +0700 |
---|---|---|
committer | Aleksandr <ognelisar@gmail.com> | 2017-10-20 09:46:28 +0700 |
commit | 6c4ae350eb6444f1d811e2db4f92c96cd331ad74 (patch) | |
tree | 900adc960c55d775cd2fd27be8fe4c462cbbe8b7 /src/test/scala/xyz/driver/pdsuidomain | |
parent | 0eb0f1b877237fe20069e66ca460549e5e96377c (diff) | |
parent | 9ca0cae09bc880ce083c2a49ae3804889cc9d4c4 (diff) | |
download | rest-query-6c4ae350eb6444f1d811e2db4f92c96cd331ad74.tar.gz rest-query-6c4ae350eb6444f1d811e2db4f92c96cd331ad74.tar.bz2 rest-query-6c4ae350eb6444f1d811e2db4f92c96cd331ad74.zip |
Merge branch 'master' into TRIAL-55
Diffstat (limited to 'src/test/scala/xyz/driver/pdsuidomain')
-rw-r--r-- | src/test/scala/xyz/driver/pdsuidomain/DocumentSuite.scala | 3 | ||||
-rw-r--r-- | src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/DocumentFormatSuite.scala | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/test/scala/xyz/driver/pdsuidomain/DocumentSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/DocumentSuite.scala index 7d8a418..915e4e7 100644 --- a/src/test/scala/xyz/driver/pdsuidomain/DocumentSuite.scala +++ b/src/test/scala/xyz/driver/pdsuidomain/DocumentSuite.scala @@ -82,7 +82,8 @@ class DocumentSuite extends BaseSuite { startDate = Some(lastUpdate.toLocalDate.minusDays(2)), endDate = None, lastUpdate = lastUpdate, - meta = Some(TextJson(Document.Meta(1.1, 2.2))) + meta = Some(TextJson(Document.Meta(1.1, 2.2))), + labelVersion = 1 ) } } diff --git a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/DocumentFormatSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/DocumentFormatSuite.scala index e6dd4a1..111da6e 100644 --- a/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/DocumentFormatSuite.scala +++ b/src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/DocumentFormatSuite.scala @@ -28,14 +28,15 @@ class DocumentFormatSuite extends FlatSpec with Matchers { requiredType = Some(Document.RequiredType.OPN), meta = None, startDate = None, - endDate = None + endDate = None, + labelVersion = 0 ) val writtenJson = documentFormat.write(orig) writtenJson should be( """{"id":1,"recordId":101,"physician":"physician","typeId":10,"provider":"provider 21","providerTypeId":21, "requiredType":"OPN","institutionName":"institution name","startDate":null,"endDate":null,"status":"New","assignee":null,"previousStatus":null, - "previousAssignee":null,"lastActiveUser":null,"lastUpdate":"2017-08-10T18:00Z","meta":null}""".parseJson) + "previousAssignee":null,"lastActiveUser":null,"lastUpdate":"2017-08-10T18:00Z","meta":null,"labelVersion":0}""".parseJson) val createDocumentJson = """{"recordId":101,"physician":"physician","typeId":10,"provider":"provider 21","providerTypeId":21}""".parseJson |