diff options
author | Aleksandr <ognelisar@gmail.com> | 2017-09-28 18:26:36 +0700 |
---|---|---|
committer | Aleksandr <ognelisar@gmail.com> | 2017-09-28 18:26:36 +0700 |
commit | f8902d43cb189b408210ae7c80e2112346bdc037 (patch) | |
tree | 4eb5d3c83f20bc4d8423561d1475dc9a9a4561f7 /src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/BridgeUploadQueueGen.scala | |
parent | 1f569ac1a31f88334c25976d94e7c495a7bbde80 (diff) | |
download | rest-query-f8902d43cb189b408210ae7c80e2112346bdc037.tar.gz rest-query-f8902d43cb189b408210ae7c80e2112346bdc037.tar.bz2 rest-query-f8902d43cb189b408210ae7c80e2112346bdc037.zip |
Fixed generators of entities for ReP; Implemented json examples for swagger for ReP
Diffstat (limited to 'src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/BridgeUploadQueueGen.scala')
-rw-r--r-- | src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/BridgeUploadQueueGen.scala | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/BridgeUploadQueueGen.scala b/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/BridgeUploadQueueGen.scala index fb1d3e3..e7cbd19 100644 --- a/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/BridgeUploadQueueGen.scala +++ b/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/BridgeUploadQueueGen.scala @@ -2,30 +2,21 @@ package xyz.driver.pdsuidomain.fakes.entities.rep import xyz.driver.core.generators.{nextBoolean, nextInt, nextOption, nextString} import xyz.driver.pdsuicommon.concurrent.BridgeUploadQueue -import xyz.driver.pdsuidomain.entities.ProviderType -import xyz.driver.pdsuidomain.fakes.entities.common.{nextLocalDateTime, nextLongId} +import xyz.driver.pdsuidomain.fakes.entities.common.nextLocalDateTime object BridgeUploadQueueGen { - private val maxAttemtsNumber = 100 + private val maxAttemptsNumber = 100 def nextBridgeUploadQueueItem(): BridgeUploadQueue.Item = { BridgeUploadQueue.Item( kind = nextString(), tag = nextString(), created = nextLocalDateTime, - attempts = nextInt(maxAttemtsNumber, minValue = 0), + attempts = nextInt(maxAttemptsNumber, minValue = 0), nextAttempt = nextLocalDateTime, completed = nextBoolean(), dependencyKind = nextOption(nextString()), dependencyTag = nextOption(nextString()) ) } - - def nextProviderType(): ProviderType = { - ProviderType( - id = nextLongId[ProviderType], - name = nextString() - ) - } - } |