class Faker: AbstractFaker

Provides access to 'core' fake data generators.

Each category (generator) from this Faker is represented by a property that has the same name as the .yml file.

Fields

Name Description
val crypto: CryptographyProvider
val random: RandomProvider

provides data-generator-like functionality for the functions of RandomService.

val randomClass: RandomClassProvider

provides additional functionality that is not covered by other data providers such as address, name, internet, and so on. See RandomClassProvider for more details.

val string: StringProvider

provides functionality to generate strings from expressions/templates

val address: Address
val color: Color
val currency: Currency
val currencySymbol: CurrencySymbol
val file: File
val gender: Gender
val idNumber: IdNumber
val internet: Internet
val measurement: Measurement
val money: Money
val name: Name
val person: Person
val phoneNumber: PhoneNumber
val separator: Separator

Constructors

<init>

constructor(config: FakerConfig)

Provides access to 'core' fake data generators.

Each category (generator) from this Faker is represented by a property that has the same name as the .yml file.

Parameters

Name Description
config: FakerConfig