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/DocumentGen.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/DocumentGen.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/DocumentGen.scala | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/DocumentGen.scala b/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/DocumentGen.scala index 0d32495..10349bb 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/DocumentGen.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/DocumentGen.scala @@ -1,6 +1,5 @@ package xyz.driver.pdsuidomain.fakes.entities.rep - import java.time.LocalDate import xyz.driver.core.generators @@ -10,8 +9,7 @@ import xyz.driver.pdsuidomain.entities._ import xyz.driver.pdsuidomain.fakes.entities.common.{nextLocalDate, nextLocalDateTime, nextLongId, nextStringId} object DocumentGen { - implicit private class LocalDateOrdering(localData: LocalDate) - extends Ordered[LocalDate] { + implicit private class LocalDateOrdering(localData: LocalDate) extends Ordered[LocalDate] { override def compare(that: LocalDate): Int = { this.localData.compareTo(that) @@ -25,8 +23,7 @@ object DocumentGen { Common.nextStartAndEndPages private def nextStartAndEndPage() = - Common.genBoundedRange(nextDouble(),nextDouble()) - + Common.genBoundedRange(nextDouble(), nextDouble()) def nextDocumentStatus(): Document.Status = Document.Status.New @@ -44,7 +41,9 @@ object DocumentGen { val (startPage, endPage) = nextStartAndEndPage() Document.Meta( - nextOption(nextBoolean()), startPage, endPage + nextOption(nextBoolean()), + startPage, + endPage ) } @@ -98,7 +97,6 @@ object DocumentGen { ) } - def nextDocumentHistory(documentId: LongId[Document] = nextLongId): DocumentHistory = { DocumentHistory( id = nextLongId[DocumentHistory], |