Skip to main content
Version: v0.6.x

FixtureCustomizer

public interface FixtureCustomizer<T> {
default void customizeProperties(ChildArbitraryContext childArbitraryContext) {
}

@Nullable
T customizeFixture(@Nullable T object);
}

customizeProperties

public void customizeProperties(ChildArbitraryContext childArbitraryContext)

customize child properties

ChildArbitraryContext

replaceArbitrary

public void replaceArbitrary(Matcher matcher, Arbitrary<?> arbitrary)

replaces by arbitrary if given property matches by matcher

removeArbitrary

public void removeArbitrary(Matcher matcher)

removes by arbitrary if given property matches by matcher

customizerFixture

@Nullable
public T customizeFixture(@Nullable T object)

generated object is customized by customizeFixture