Uses of Class
com.github.nylle.javafixture.SpecimenType
-
Packages that use SpecimenType Package Description com.github.nylle.javafixture com.github.nylle.javafixture.specimen -
-
Uses of SpecimenType in com.github.nylle.javafixture
Methods in com.github.nylle.javafixture that return SpecimenType Modifier and Type Method Description static <T> SpecimenType<T>SpecimenType. fromClass(Type typeReference)static <T> SpecimenType<T>SpecimenType. fromRawType(Class<?> rawType, Type[] actualTypeArguments)Methods in com.github.nylle.javafixture with parameters of type SpecimenType Modifier and Type Method Description <T> voidFixture. addManyTo(Collection<T> result, SpecimenType<T> type)Adds objects of the specifiedSpecimenType<T>, recursively populated with random values, to the specifiedCollection<T>The number of objects created is specified in theConfigurationunderstreamSize(default: 3)<T> ISpecimenBuilder<T>Fixture. build(SpecimenType<T> type)Creates aISpecimenBuilder<T>to customise the object of typeTto be created<T> ISpecimen<T>SpecimenFactory. build(SpecimenType<T> type)<T> TContext. cached(SpecimenType<?> type, T instance)<T> TContext. cached(SpecimenType<T> type)<T> TFixture. construct(SpecimenType<T> type)Creates a new object of the specified type, using a random constructor if available<T> TInstanceFactory. construct(SpecimenType<T> type)<T> TFixture. create(SpecimenType<T> type)Creates a new object of the specified type, recursively populated with random values<T> Stream<T>Fixture. createMany(SpecimenType<T> type)Creates aStreamof objects of the specified type, recursively populated with random values<T> TInstanceFactory. instantiate(SpecimenType<T> type)booleanContext. isCached(SpecimenType<?> type)<T> TInstanceFactory. manufacture(SpecimenType<T> type)<T> TContext. preDefined(SpecimenType<T> type, T instance)<T> ObjectInstanceFactory. proxy(SpecimenType<T> type)<T> ObjectInstanceFactory. proxy(SpecimenType<T> type, Map<String,ISpecimen<?>> specimens)Reflector<T>Reflector. validateCustomization(CustomizationContext customizationContext, SpecimenType<T> type)<U> ISpecimenBuilder<T>ISpecimenBuilder. with(SpecimenType<U> type, U value)<U> ISpecimenBuilder<T>SpecimenBuilder. with(SpecimenType<U> type, U value)Sets all fields with the specified type to the specified value during object creation.Constructors in com.github.nylle.javafixture with parameters of type SpecimenType Constructor Description SpecimenBuilder(SpecimenType<T> type, Configuration configuration) -
Uses of SpecimenType in com.github.nylle.javafixture.specimen
Constructors in com.github.nylle.javafixture.specimen with parameters of type SpecimenType Constructor Description AbstractSpecimen(SpecimenType<T> type, Context context, SpecimenFactory specimenFactory)ArraySpecimen(SpecimenType<T> type, Context context, SpecimenFactory specimenFactory)CollectionSpecimen(SpecimenType<T> type, Context context, SpecimenFactory specimenFactory)EnumSpecimen(SpecimenType<T> type, Context context)GenericSpecimen(SpecimenType<T> type, Context context, SpecimenFactory specimenFactory)InterfaceSpecimen(SpecimenType<T> type, Context context, SpecimenFactory specimenFactory)MapSpecimen(SpecimenType<T> type, Context context, SpecimenFactory specimenFactory)ObjectSpecimen(SpecimenType<T> type, Context context, SpecimenFactory specimenFactory)PrimitiveSpecimen(SpecimenType<T> type, Context context)TimeSpecimen(SpecimenType<T> type, Context context)
-