diff options
author | Aleksandr <ognelisar@gmail.com> | 2017-09-28 18:27:34 +0700 |
---|---|---|
committer | Aleksandr <ognelisar@gmail.com> | 2017-09-28 18:27:34 +0700 |
commit | fa841b8902ff29dc3d3e8c7dccd93d7b5b2b827f (patch) | |
tree | 827679a7ffc4478fbb3e0d38fc0ec8821dad03fe /src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/MedicalRecordGen.scala | |
parent | f8902d43cb189b408210ae7c80e2112346bdc037 (diff) | |
download | rest-query-fa841b8902ff29dc3d3e8c7dccd93d7b5b2b827f.tar.gz rest-query-fa841b8902ff29dc3d3e8c7dccd93d7b5b2b827f.tar.bz2 rest-query-fa841b8902ff29dc3d3e8c7dccd93d7b5b2b827f.zip |
Formatted code by scalafmt
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/MedicalRecordGen.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/MedicalRecordGen.scala | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/MedicalRecordGen.scala b/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/MedicalRecordGen.scala index 90c98c3..7221e66 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/MedicalRecordGen.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/MedicalRecordGen.scala @@ -39,7 +39,6 @@ object MedicalRecordGen { TextJson(documents.map(_.copy(recordId = recordId))) } - def nextMedicalRecordStatus(): MedicalRecord.Status = MedicalRecord.Status.New @@ -49,7 +48,6 @@ object MedicalRecordGen { def nextMedicalRecordHistoryAction(): MedicalRecordHistory.Action = generators.oneOf[MedicalRecordHistory.Action](MedicalRecordHistory.Action.All) - def nextMedicalRecordMetaReorder(): MedicalRecord.Meta.Reorder = { val itemsNumber = maxItemsInCollectionNumber @@ -62,7 +60,6 @@ object MedicalRecordGen { ) } - def nextMedicalRecordMetaDuplicate(): MedicalRecord.Meta.Duplicate = { val startPageGen = nextInt(pageMaxNumber, minValue = 0) @@ -80,9 +77,11 @@ object MedicalRecordGen { def nextMedicalRecordMetaRotation(): MedicalRecord.Meta.Rotation = { val items = - Array.tabulate(maxItemsInCollectionNumber)( - index => nextString() -> index - ).toMap + Array + .tabulate(maxItemsInCollectionNumber)( + index => nextString() -> index + ) + .toMap MedicalRecord.Meta.Rotation( predicted = nextOption(nextBoolean()), @@ -94,7 +93,6 @@ object MedicalRecordGen { generators.oneOf(medicalRecordMetas)() } - def nextMedicalRecord(): MedicalRecord = { val id = nextLongId[MedicalRecord] MedicalRecord( |