diff options
author | vlad <vlad@driver.xyz> | 2017-10-02 01:05:42 -0700 |
---|---|---|
committer | vlad <vlad@driver.xyz> | 2017-10-02 01:05:42 -0700 |
commit | d0482b45b6f9149f050c5e5a6dbab6f059229282 (patch) | |
tree | c82ce57536dc2ec51b34f1b6f8159835d95c2cc6 /src/main/scala/xyz/driver/pdsuidomain/fakes/entities/rep/DocumentGen.scala | |
parent | c5b7f009479930b82f0fb839971eeb2c457dcef0 (diff) | |
download | rest-query-d0482b45b6f9149f050c5e5a6dbab6f059229282.tar.gz rest-query-d0482b45b6f9149f050c5e5a6dbab6f059229282.tar.bz2 rest-query-d0482b45b6f9149f050c5e5a6dbab6f059229282.zip |
DocumentType and ProviderType as enumsv0.5.3
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 | 8 |
1 files changed, 2 insertions, 6 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 6d5330e..1ac75ab 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 @@ -75,12 +75,8 @@ object DocumentGen { ) } - def nextDocumentType(): DocumentType = { - DocumentType( - id = nextLongId[DocumentType], - name = nextString() - ) - } + def nextDocumentType(): DocumentType = + generators.oneOf(DocumentType.All: _*) def nextDocumentIssue(documentId: LongId[Document] = nextLongId): DocumentIssue = { val pages = nextStartAndEndPagesOption() |