trait Generators extends GenerationDomain
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- Generators
- GenerationDomain
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
type
City = domain.Definitions.City
- Definition Classes
- GenerationDomain
-
type
Country = domain.Definitions.Country
- Definition Classes
- GenerationDomain
-
type
CountryCode = domain.Definitions.CountryCode
- Definition Classes
- GenerationDomain
-
type
Domain = domain.Definitions.Domain
- Definition Classes
- GenerationDomain
-
type
EmailAddress = domain.Definitions.EmailAddress
- Definition Classes
- GenerationDomain
-
type
FirstName = domain.Definitions.FirstName
- Definition Classes
- GenerationDomain
-
type
FullName = domain.Definitions.FullName
- Definition Classes
- GenerationDomain
-
type
LastName = domain.Definitions.LastName
- Definition Classes
- GenerationDomain
-
type
LoremIpsum = domain.Definitions.LoremIpsum
- Definition Classes
- GenerationDomain
-
type
ProgrammingLanguage = domain.Definitions.ProgrammingLanguage
- Definition Classes
- GenerationDomain
-
type
ShortString = domain.Definitions.ShortString
- Definition Classes
- GenerationDomain
-
type
Url = domain.Definitions.Url
- Definition Classes
- GenerationDomain
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
City: domain.Definitions.City.type
- Definition Classes
- GenerationDomain
-
val
Country: domain.Definitions.Country.type
- Definition Classes
- GenerationDomain
-
val
CountryCode: domain.Definitions.CountryCode.type
- Definition Classes
- GenerationDomain
-
val
Domain: domain.Definitions.Domain.type
- Definition Classes
- GenerationDomain
-
val
EmailAddress: domain.Definitions.EmailAddress.type
- Definition Classes
- GenerationDomain
-
val
FirstName: domain.Definitions.FirstName.type
- Definition Classes
- GenerationDomain
-
val
FullName: domain.Definitions.FullName.type
- Definition Classes
- GenerationDomain
-
val
LastName: domain.Definitions.LastName.type
- Definition Classes
- GenerationDomain
-
val
LoremIpsum: domain.Definitions.LoremIpsum.type
- Definition Classes
- GenerationDomain
-
val
ProgrammingLanguage: domain.Definitions.ProgrammingLanguage.type
- Definition Classes
- GenerationDomain
-
val
ShortString: domain.Definitions.ShortString.type
- Definition Classes
- GenerationDomain
-
val
Url: domain.Definitions.Url.type
- Definition Classes
- GenerationDomain
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val defaultGeneration: Int
-
val
domains: List[String]
- Attributes
- protected[this]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
gen[M[X] <: TraversableOnce[X], T](size: Int = defaultGeneration)(implicit cbf: CanBuildFrom[Nothing, T, M[T]], sampler: Sample[T]): M[T]
Generates a list of elements based on an input collection type.
Generates a list of elements based on an input collection type.
- M
The type of collection to build
- T
The type of the underlying sampled type.
- size
The number of elements to generate
- cbf
The implicit builder
- returns
A Collection of "size" elements with type T.
-
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.
- def genList[T](size: Int = defaultGeneration)(implicit arg0: Sample[T]): List[T]
- def genMap[A1, A2](size: Int = defaultGeneration)(implicit arg0: Sample[A1], arg1: Sample[A2], cbf: CanBuildFrom[Nothing, (A1, A2), Map[A1, A2]]): Map[A1, A2]
- def genOpt[T](implicit arg0: Sample[T]): Option[T]
- def genSet[T](size: Int = defaultGeneration)(implicit arg0: Sample[T]): Set[T]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def oneOf[T <: Enumeration](enum: T): oneOf.T.Value
- def oneOf[T](list: Seq[T]): T
-
val
protocols: List[String]
- Attributes
- protected[this]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )