class LocalUniqueDataProvider<T : FakeDataProvider> : UniqueDataProvider
Constructors
| Name | Description |
|---|---|
constructor()
|
Local provider for unique values. This provider is used in T implementation of FakeDataProvider class, and controls unique generation configuration of T's functions. Example usage:
|
Methods
disableAll
fun disableAll()
In this class the function works the same as clearAll implementation.
ReturnValue
| Name | Description |
|---|---|
Unit
|
clearAll
fun clearAll()
Clears the already returned (used) unique values so that they can again be returned.
ReturnValue
| Name | Description |
|---|---|
Unit
|
clear
fun clear(name: String)
Clears the already returned (used) unique values for the function with provided name.
Example usage:
address.unique.clear("country") // clear (reset) unique values for 'country' function
Parameters
| Name | Description |
|---|---|
name: String
|
ReturnValue
| Name | Description |
|---|---|
Unit
|
Local provider for unique values.
This provider is used in T implementation of FakeDataProvider class, and controls unique generation configuration of T's functions.
Example usage: