aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala
diff options
context:
space:
mode:
authorvlad <vlad@driver.xyz>2017-11-02 16:22:11 -0700
committervlad <vlad@driver.xyz>2017-11-02 16:22:11 -0700
commitb331892f87846945f69a28e9f3ee786cd4b93577 (patch)
treecd1489df3a8c85f3791ba25b281c1817e286ec8d /src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala
parent4583af5213b9f7b1e8a06f58321813556763f2d1 (diff)
downloadrest-query-b331892f87846945f69a28e9f3ee786cd4b93577.tar.gz
rest-query-b331892f87846945f69a28e9f3ee786cd4b93577.tar.bz2
rest-query-b331892f87846945f69a28e9f3ee786cd4b93577.zip
Using common request contexts and user objects
Diffstat (limited to 'src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala')
-rw-r--r--src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala
index c296f84..6cddb45 100644
--- a/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala
+++ b/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientFormatSuite.scala
@@ -4,10 +4,12 @@ import java.time.{LocalDate, LocalDateTime}
import spray.json._
import org.scalatest.{FlatSpec, Matchers}
+import xyz.driver.core.Id
+import xyz.driver.entities.clinic.TestOrder
import xyz.driver.entities.common.FullName
import xyz.driver.entities.patient.CancerType
import xyz.driver.pdsuicommon.domain.UuidId
-import xyz.driver.pdsuidomain.entities.{Patient, PatientOrderId}
+import xyz.driver.pdsuidomain.entities.Patient
class PatientFormatSuite extends FlatSpec with Matchers {
import xyz.driver.pdsuidomain.formats.json.patient._
@@ -24,7 +26,7 @@ class PatientFormatSuite extends FlatSpec with Matchers {
lastActiveUserId = None,
isUpdateRequired = false,
disease = CancerType.Breast,
- orderId = PatientOrderId("7b54a75d-4197-4b27-9045-b9b6cb131be9"),
+ orderId = Id[TestOrder]("7b54a75d-4197-4b27-9045-b9b6cb131be9"),
lastUpdate = LocalDateTime.parse("2017-08-10T18:00:00")
)
val writtenJson = patientFormat.write(orig)