Package com.github.nylle.javafixture
Interface ISpecimenBuilder<T>
-
- All Known Implementing Classes:
SpecimenBuilder
public interface ISpecimenBuilder<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tcreate()Stream<T>createMany()Stream<T>createMany(int size)Optional<T>createOptional()<U> ISpecimenBuilder<T>with(SpecimenType<U> type, U value)<U> ISpecimenBuilder<T>with(Class<U> type, U value)ISpecimenBuilder<T>with(String fieldName, Object value)ISpecimenBuilder<T>with(Consumer<T> function)ISpecimenBuilder<T>without(String fieldName)
-
-
-
Method Detail
-
create
T create()
-
with
ISpecimenBuilder<T> with(Consumer<T> function)
-
with
ISpecimenBuilder<T> with(String fieldName, Object value)
-
with
<U> ISpecimenBuilder<T> with(Class<U> type, U value)
-
with
<U> ISpecimenBuilder<T> with(SpecimenType<U> type, U value)
-
without
ISpecimenBuilder<T> without(String fieldName)
-
-