class GlobalUniqueDataProvider: UniqueDataProvider
Methods
disableAll
fun disableAll()
Disables "unique generation" for all providers that were configured to return unique values, and clears out any already returned values, so they can possibly be returned again.
ReturnValue
Name | Description |
---|---|
Unit
|
clearAll
fun clearAll()
Clears the already returned (used) unique values and exclusion patterns so that values can again be returned.
ReturnValue
Name | Description |
---|---|
Unit
|
clear
fun <T : FakeDataProvider> clear(providerProperty: KProperty0<T>)
Parameters
Name | Description |
---|---|
providerProperty: KProperty0<T>
|
ReturnValue
Name | Description |
---|---|
Unit
|
configuration
fun configuration(function: UniqueProviderConfiguration.()->Unit)
Configures this
Unique provider.
Parameters
Name | Description |
---|---|
function: UniqueProviderConfiguration.()->Unit
|
ReturnValue
Name | Description |
---|---|
Unit
|
Global provider for unique values.
This provider is used in AbstractFaker class implementations to control global unique generation configuration of faker providers.
Example usage: