aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/DocumentGen.scala
diff options
context:
space:
mode:
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.scala12
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],