diff options
author | Aleksandr <ognelisar@gmail.com> | 2017-10-17 12:59:45 +0700 |
---|---|---|
committer | Aleksandr <ognelisar@gmail.com> | 2017-10-17 12:59:45 +0700 |
commit | 55756e6206822ca1784f91e3266c48adc084905f (patch) | |
tree | 8095ef7157edbbb7e0997840eb654eb23278abb6 /src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/BridgeUploadQueueGen.scala | |
parent | cf68e1eb3b352d8c5045dea703d4ae3fe9c46543 (diff) | |
parent | c5d36593cc14bfdfb7b8f06d680ad6fc2eb6dde0 (diff) | |
download | rest-query-55756e6206822ca1784f91e3266c48adc084905f.tar.gz rest-query-55756e6206822ca1784f91e3266c48adc084905f.tar.bz2 rest-query-55756e6206822ca1784f91e3266c48adc084905f.zip |
Merge branch 'master' into PDSUI-rep-spray
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 | 22 |
1 files changed, 0 insertions, 22 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 deleted file mode 100644 index e7cbd19..0000000 --- a/src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/BridgeUploadQueueGen.scala +++ /dev/null @@ -1,22 +0,0 @@ -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.fakes.entities.common.nextLocalDateTime - -object BridgeUploadQueueGen { - private val maxAttemptsNumber = 100 - - def nextBridgeUploadQueueItem(): BridgeUploadQueue.Item = { - BridgeUploadQueue.Item( - kind = nextString(), - tag = nextString(), - created = nextLocalDateTime, - attempts = nextInt(maxAttemptsNumber, minValue = 0), - nextAttempt = nextLocalDateTime, - completed = nextBoolean(), - dependencyKind = nextOption(nextString()), - dependencyTag = nextOption(nextString()) - ) - } -} |