Skip to content

Commit

Permalink
Add customizeProperty API as maintained (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
seongahjo committed Sep 28, 2024
1 parent 92ba51c commit f508987
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,18 @@ <R> ArbitraryBuilder<R> zipWith(

ArbitraryBuilder<T> instantiate(TypeReference<?> type, Instantiator instantiator);

/**
* Customizes the arbitrary value generated from selected properties.
* It can be called several times and nested. It has an order dependency.
* <p>
* Without any set APIs, it customizes the arbitrary value.
* With set APIs, it customizes the last value in set APIs.
*
* @param propertySelector the property selector with type
* @param combinableArbitraryCustomizer
* @param <U> the type of the properties selected by {@code propertySelector}.
* @return a customized {@link ArbitraryBuilder}
*/
@API(since = "1.0.9", status = Status.MAINTAINED)
<U> ArbitraryBuilder<T> customizeProperty(
TypedPropertySelector<U> propertySelector,
Expand Down

0 comments on commit f508987

Please sign in to comment.