aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/xyz/driver/core/GeneratorsTest.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/xyz/driver/core/GeneratorsTest.scala')
-rw-r--r--src/test/scala/xyz/driver/core/GeneratorsTest.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/scala/xyz/driver/core/GeneratorsTest.scala b/src/test/scala/xyz/driver/core/GeneratorsTest.scala
index 737cbcb..62ba7ae 100644
--- a/src/test/scala/xyz/driver/core/GeneratorsTest.scala
+++ b/src/test/scala/xyz/driver/core/GeneratorsTest.scala
@@ -44,6 +44,11 @@ class GeneratorsTest extends FlatSpec with Matchers with Assertions {
assert(!fixedLengthName.value.exists(_.isControl))
}
+ it should "be able to generate com.drivergrp.core.NonEmptyName with non empty strings" in {
+
+ assert(nextNonEmptyName[String]().value.value.nonEmpty)
+ }
+
it should "be able to generate proper UUIDs" in {
nextUuid() should not be nextUuid()
@@ -66,6 +71,11 @@ class GeneratorsTest extends FlatSpec with Matchers with Assertions {
assert(!fixedLengthString.exists(_.isControl))
}
+ it should "be able to generate strings non-empty strings whic are non empty" in {
+
+ assert(nextNonEmptyString().value.nonEmpty)
+ }
+
it should "be able to generate options which are sometimes have values and sometimes not" in {
val generatedOption = nextOption("2")