diff options
author | Kseniya Tomskikh <ktomskih@datamonsters.co> | 2017-10-05 14:56:08 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-05 14:56:08 +0700 |
commit | 98dd8b171aee84c88754ea1a8ec20524ad579d7c (patch) | |
tree | 8d6983473c12c4bbdff3fdc1b22e64feb82b0993 /src/test/scala/xyz/driver/pdsuidomain/formats | |
parent | 7d6376873a5bdeca2c9a67f0a0db99faa78b5967 (diff) | |
parent | 6f4de1ccfb6efe8f9ddbaec6551a9138a6efa6f8 (diff) | |
download | rest-query-98dd8b171aee84c88754ea1a8ec20524ad579d7c.tar.gz rest-query-98dd8b171aee84c88754ea1a8ec20524ad579d7c.tar.bz2 rest-query-98dd8b171aee84c88754ea1a8ec20524ad579d7c.zip |
Merge pull request #39 from drivergroup/PDSUI-2268
PDSUI-2268 Added institution field to document
Diffstat (limited to 'src/test/scala/xyz/driver/pdsuidomain/formats')
-rw-r--r-- | src/test/scala/xyz/driver/pdsuidomain/formats/json/sprayformats/DocumentFormatSuite.scala | 6 |
1 files changed, 4 insertions, 2 deletions
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 9394735..cc1832c 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 @@ -24,6 +24,7 @@ class DocumentFormatSuite extends FlatSpec with Matchers { typeId = Some(LongId(10)), providerName = Some("provider 21"), providerTypeId = Some(LongId(21)), + institutionName = Some("institution name"), requiredType = Some(Document.RequiredType.OPN), meta = None, startDate = None, @@ -33,7 +34,7 @@ class DocumentFormatSuite extends FlatSpec with Matchers { writtenJson should be ( """{"id":1,"recordId":101,"physician":"physician","typeId":10,"provider":"provider 21","providerTypeId":21, - "requiredType":"OPN","startDate":null,"endDate":null,"status":"New","assignee":null,"previousStatus":null, + "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) val createDocumentJson = @@ -41,7 +42,8 @@ class DocumentFormatSuite extends FlatSpec with Matchers { val expectedCreatedDocument = orig.copy( id = LongId(0), lastUpdate = LocalDateTime.MIN, - requiredType = None + requiredType = None, + institutionName = None ) val parsedCreatedDocument = documentFormat.read(createDocumentJson) parsedCreatedDocument should be(expectedCreatedDocument) |