com.outworkers.util.testing

Samples

object Samples extends Generators

Linear Supertypes
Generators, GenerationDomain, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Samples
  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. class BigDecimalSampler extends Sample[BigDecimal]

  2. class BigIntSampler extends Sample[BigInt]

  3. class BooleanSampler extends Sample[Boolean]

  4. class ByteSampler extends Sample[Byte]

  5. type City = domain.Definitions.City

    Definition Classes
    GenerationDomain
  6. class CitySampler extends Sample[City]

  7. type Country = domain.Definitions.Country

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

    Definition Classes
    GenerationDomain
  9. class CountryCodeSampler extends Sample[CountryCode]

  10. class CountrySampler extends Sample[Country]

  11. class DateSampler extends Sample[Date]

  12. class DateTimeSampler extends Sample[DateTime]

  13. type Domain = domain.Definitions.Domain

    Definition Classes
    GenerationDomain
  14. class DoubleSampler extends Sample[Double]

  15. type EmailAddress = domain.Definitions.EmailAddress

    Definition Classes
    GenerationDomain
  16. class EmailAddressSampler extends Sample[EmailAddress]

  17. type FirstName = domain.Definitions.FirstName

    Definition Classes
    GenerationDomain
  18. class FirstNameSampler extends Sample[FirstName]

  19. class FloatSampler extends Sample[Float]

  20. type FullName = domain.Definitions.FullName

    Definition Classes
    GenerationDomain
  21. class FullNameSampler extends Sample[FullName]

  22. class InetAddressSampler extends Sample[InetAddress]

  23. class IntSampler extends Sample[Int]

  24. class JodaLocalDateSampler extends Sample[LocalDate]

  25. type LastName = domain.Definitions.LastName

    Definition Classes
    GenerationDomain
  26. class LastNameSampler extends Sample[LastName]

  27. class LongSampler extends Sample[Long]

  28. type LoremIpsum = domain.Definitions.LoremIpsum

    Definition Classes
    GenerationDomain
  29. class LoremIpsumSampler extends Sample[LoremIpsum]

  30. type ProgrammingLanguage = domain.Definitions.ProgrammingLanguage

    Definition Classes
    GenerationDomain
  31. class ProgrammingLanguageSampler extends Sample[ProgrammingLanguage]

  32. class ShortSampler extends Sample[Short]

  33. type ShortString = domain.Definitions.ShortString

    Definition Classes
    GenerationDomain
  34. class ShortStringSampler extends Sample[ShortString]

  35. class StringSampler extends Sample[String]

  36. class UUIDSampler extends Sample[UUID]

  37. type Url = domain.Definitions.Url

    Definition Classes
    GenerationDomain
  38. class UrlSampler extends Sample[Url]

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. val City: domain.Definitions.City.type

    Definition Classes
    GenerationDomain
  7. val Country: domain.Definitions.Country.type

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

    Definition Classes
    GenerationDomain
  9. val Domain: domain.Definitions.Domain.type

    Definition Classes
    GenerationDomain
  10. val EmailAddress: domain.Definitions.EmailAddress.type

    Definition Classes
    GenerationDomain
  11. val FirstName: domain.Definitions.FirstName.type

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

    Definition Classes
    GenerationDomain
  13. val LastName: domain.Definitions.LastName.type

    Definition Classes
    GenerationDomain
  14. val LoremIpsum: domain.Definitions.LoremIpsum.type

    Definition Classes
    GenerationDomain
  15. val ProgrammingLanguage: domain.Definitions.ProgrammingLanguage.type

    Definition Classes
    GenerationDomain
  16. val ShortString: domain.Definitions.ShortString.type

    Definition Classes
    GenerationDomain
  17. val Url: domain.Definitions.Url.type

    Definition Classes
    GenerationDomain
  18. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  19. def clone(): AnyRef

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

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

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. 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
  26. 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
  27. def genList[T](size: Int = defaultGeneration)(implicit arg0: Sample[T]): List[T]

    Definition Classes
    Generators
  28. 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
  29. 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
  30. def genMap[T](size: Int = defaultGeneration)(implicit arg0: Sample[T]): Map[String, T]

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

    Definition Classes
    Generators
  32. def genSet[T](size: Int = defaultGeneration)(implicit arg0: Sample[T]): Set[T]

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  43. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Generators

Inherited from GenerationDomain

Inherited from AnyRef

Inherited from Any

Ungrouped