com.outworkers.util.testing

Sample

object Sample extends Generators

Linear Supertypes
Generators, GenerationDomain, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Sample
  2. Generators
  3. GenerationDomain
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type City = domain.Definitions.City

    Definition Classes
    GenerationDomain
  2. type Country = domain.Definitions.Country

    Definition Classes
    GenerationDomain
  3. type CountryCode = domain.Definitions.CountryCode

    Definition Classes
    GenerationDomain
  4. type Domain = domain.Definitions.Domain

    Definition Classes
    GenerationDomain
  5. type EmailAddress = domain.Definitions.EmailAddress

    Definition Classes
    GenerationDomain
  6. type FirstName = domain.Definitions.FirstName

    Definition Classes
    GenerationDomain
  7. type FullName = domain.Definitions.FullName

    Definition Classes
    GenerationDomain
  8. type LastName = domain.Definitions.LastName

    Definition Classes
    GenerationDomain
  9. type LoremIpsum = domain.Definitions.LoremIpsum

    Definition Classes
    GenerationDomain
  10. type ProgrammingLanguage = domain.Definitions.ProgrammingLanguage

    Definition Classes
    GenerationDomain
  11. type ShortString = domain.Definitions.ShortString

    Definition Classes
    GenerationDomain
  12. type Url = domain.Definitions.Url

    Definition Classes
    GenerationDomain

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. implicit object BigDecimalSampler extends Sample[BigDecimal]

  7. implicit object BigIntSampler extends Sample[BigInt]

  8. implicit object BooleanSampler extends Sample[Boolean]

  9. val City: domain.Definitions.City.type

    Definition Classes
    GenerationDomain
  10. implicit object CitySampler extends Sample[City]

  11. val Country: domain.Definitions.Country.type

    Definition Classes
    GenerationDomain
  12. val CountryCode: domain.Definitions.CountryCode.type

    Definition Classes
    GenerationDomain
  13. implicit object CountryCodeSampler extends Sample[CountryCode]

  14. implicit object CountrySampler extends Sample[Country]

  15. implicit object DateSample extends Sample[Date]

  16. implicit object DateTimeSampler extends Sample[DateTime]

  17. val Domain: domain.Definitions.Domain.type

    Definition Classes
    GenerationDomain
  18. implicit object DoubleSample extends Sample[Double]

  19. val EmailAddress: domain.Definitions.EmailAddress.type

    Definition Classes
    GenerationDomain
  20. implicit object EmailSample extends Sample[EmailAddress]

  21. val FirstName: domain.Definitions.FirstName.type

    Definition Classes
    GenerationDomain
  22. implicit object FirstNameSampler extends Sample[FirstName]

  23. implicit object FloatSample extends Sample[Float]

  24. val FullName: domain.Definitions.FullName.type

    Definition Classes
    GenerationDomain
  25. implicit object FullNameSampler extends Sample[FullName]

  26. implicit object IntSample extends Sample[Int]

  27. val LastName: domain.Definitions.LastName.type

    Definition Classes
    GenerationDomain
  28. implicit object LastNameSampler extends Sample[LastName]

  29. implicit object LocalDateSampler extends Sample[LocalDate]

  30. implicit object LongSample extends Sample[Long]

  31. val LoremIpsum: domain.Definitions.LoremIpsum.type

    Definition Classes
    GenerationDomain
  32. implicit object LoremIpsumSampler extends Sample[LoremIpsum]

  33. val ProgrammingLanguage: domain.Definitions.ProgrammingLanguage.type

    Definition Classes
    GenerationDomain
  34. implicit object ProgrammingLanguageSampler extends Sample[ProgrammingLanguage]

  35. val ShortString: domain.Definitions.ShortString.type

    Definition Classes
    GenerationDomain
  36. implicit object ShortStringSampler extends Sample[ShortString]

  37. implicit object StringSample extends Sample[String]

  38. implicit object UUIDSample extends Sample[UUID]

  39. val Url: domain.Definitions.Url.type

    Definition Classes
    GenerationDomain
  40. implicit object UrlSampler extends Sample[Url]

  41. def apply[T](implicit arg0: Sample[T]): Sample[T]

  42. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  43. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. val defaultGeneration: Int

    Definition Classes
    Generators
  45. val domains: List[String]

    Attributes
    protected[this]
    Definition Classes
    Generators
  46. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  47. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  48. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  49. def gen[X, Y](implicit arg0: Sample[X], arg1: Sample[Y]): (X, Y)

    Generates a tuple of the given type arguments, using the implicit samplers in scope.

    Generates a tuple of the given type arguments, using the implicit samplers in scope.

    X

    The first type of the tuple to be sampled.

    Y

    The second type of the type to be sampled.

    returns

    A Tuple2[X, Y] generated using the implicit samplers.

    Definition Classes
    Generators
  50. def gen[T](implicit arg0: Sample[T]): T

    Uses the type class available in implicit scope to mock a certain custom object.

    Uses the type class available in implicit scope to mock a certain custom object.

    T

    The parameter to mock.

    returns

    A sample of the given type generated using the implicit sampler.

    Definition Classes
    Generators
  51. def genList[T](size: Int = defaultGeneration)(implicit arg0: Sample[T]): List[T]

    Definition Classes
    Generators
  52. def genMap[Key, Value](size: Int, producer: (Key) ⇒ Value)(implicit arg0: Sample[Key]): Map[Key, Value]

    Generates a map using a Sampler for the key and a function Key -> Value for the value.

    Generates a map using a Sampler for the key and a function Key -> Value for the value. Useful when the value of a key can be inferred by knowing the key itself.

    The implementation uses the value during mapping as the genMap function called with a single type argument will generate a Map[String, Type].

    Key

    The type of the Key to generate, needs to have a Sample available in scope.

    Value

    The type of the Value to generate.

    size

    The size of the map to generate.

    producer

    The function used to generate the value from a key.

    returns

    A map of the given size with sampled keys and values inferred by the producer function.

    Definition Classes
    Generators
  53. def genMap[Key, Value](size: Int)(implicit arg0: Sample[Key], arg1: Sample[Value]): Map[Key, Value]

    Generates a map of known key -> value types using implicit samplers.

    Generates a map of known key -> value types using implicit samplers.

    Key

    The type of the key the generated map should have. Needs a Sample[Key] in scope.

    Value

    The type of the value the generated map should have. Needs a Sample[Value] in scope.

    size

    The number of elements to generate in the map.

    returns

    A key -> value map generated using the pre-defined samples for Key and Value.

    Definition Classes
    Generators
  54. def genMap[T](size: Int = defaultGeneration)(implicit arg0: Sample[T]): Map[String, T]

    Definition Classes
    Generators
  55. def genOpt[T](implicit arg0: Sample[T]): Option[T]

    Definition Classes
    Generators
  56. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  57. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  58. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  59. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  60. final def notify(): Unit

    Definition Classes
    AnyRef
  61. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  62. def oneOf[T <: Enumeration](enum: T): Generators.oneOf.T.Value

    Definition Classes
    Generators
  63. def oneOf[T](list: Seq[T]): T

    Definition Classes
    Generators
  64. val protocols: List[String]

    Attributes
    protected[this]
    Definition Classes
    Generators
  65. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  66. def toString(): String

    Definition Classes
    AnyRef → Any
  67. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  68. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Generators

Inherited from GenerationDomain

Inherited from AnyRef

Inherited from Any

Ungrouped