diff options
author | vlad <vlad@driver.xyz> | 2017-10-30 14:36:01 -0700 |
---|---|---|
committer | vlad <vlad@driver.xyz> | 2017-10-30 14:36:01 -0700 |
commit | 18c226b95abbb1c86067bc62cd5c0260bf3af6d1 (patch) | |
tree | 9156ff4fc36618c3949a4deff577cecbc6ba642a /src/test/scala/xyz/driver/pdsuidomain/formats | |
parent | 78f467dd0b3b9f35bb49ae973b26fb37c458b138 (diff) | |
download | rest-query-18c226b95abbb1c86067bc62cd5c0260bf3af6d1.tar.gz rest-query-18c226b95abbb1c86067bc62cd5c0260bf3af6d1.tar.bz2 rest-query-18c226b95abbb1c86067bc62cd5c0260bf3af6d1.zip |
Rolling back some Refined codev0.11.2
Diffstat (limited to 'src/test/scala/xyz/driver/pdsuidomain/formats')
-rw-r--r-- | src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientIssueFormatSuite.scala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientIssueFormatSuite.scala b/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientIssueFormatSuite.scala index d904150..0d56918 100644 --- a/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientIssueFormatSuite.scala +++ b/src/test/scala/xyz/driver/pdsuidomain/formats/json/PatientIssueFormatSuite.scala @@ -2,12 +2,10 @@ package xyz.driver.pdsuidomain.formats.json import java.time.LocalDateTime -import eu.timepit.refined.collection.NonEmpty import spray.json._ import org.scalatest.{FlatSpec, Matchers} import xyz.driver.pdsuicommon.domain.{LongId, StringId, UuidId} import xyz.driver.pdsuidomain.entities.PatientIssue -import eu.timepit.refined.refineMV class PatientIssueFormatSuite extends FlatSpec with Matchers { import xyz.driver.pdsuidomain.formats.json.patientissue._ @@ -19,7 +17,7 @@ class PatientIssueFormatSuite extends FlatSpec with Matchers { userId = StringId("userId-001"), lastUpdate = LocalDateTime.parse("2017-08-10T18:00:00"), isDraft = false, - text = refineMV[NonEmpty]("message text"), + text = "message text", archiveRequired = false ) val writtenJson = patientIssueWriter.write(patientIssue) @@ -37,7 +35,7 @@ class PatientIssueFormatSuite extends FlatSpec with Matchers { val updatePatientIssueJson = """{"text":"new issue text","evidence":"issue evidence","archiveRequired":true}""".parseJson val expectedUpdatedPatientIssue = patientIssue.copy( - text = refineMV[NonEmpty]("new issue text"), + text = "new issue text", archiveRequired = true ) val parsedUpdatePatientIssue = applyUpdateToPatientIssue(updatePatientIssueJson, patientIssue) |