Index

A B G I O P R S V W 
All Classes and Interfaces|All Packages

A

afterAll(ExtensionContext) - Method in class org.instancio.junit.InstancioExtension
 
afterEach(ExtensionContext) - Method in class org.instancio.junit.InstancioExtension
 
afterTestExecution(ExtensionContext) - Method in class org.instancio.junit.InstancioExtension
 

B

beforeAll(ExtensionContext) - Method in class org.instancio.junit.InstancioExtension
 
beforeEach(ExtensionContext) - Method in class org.instancio.junit.InstancioExtension
 

G

getAnnotation(Class<A>) - Method in interface org.instancio.junit.GivenProvider.ElementContext
Returns an annotation of the specified type, if present.
getTargetClass() - Method in interface org.instancio.junit.GivenProvider.ElementContext
Returns the class of the element for which an instance is being provided.
getTargetElement() - Method in interface org.instancio.junit.GivenProvider.ElementContext
Returns the annotated element (either a Field or Parameter) for which an object instance is being provided.
getTargetType() - Method in interface org.instancio.junit.GivenProvider.ElementContext
Returns the type of the element for which an instance is being provided.
Given - Annotation Type in org.instancio.junit
Indicates that a field or parameter should be automatically generated with a random value during test execution.
GivenProvider - Interface in org.instancio.junit
An interface for providing instances of objects that can be injected into fields or parameters using the @Given annotation.
GivenProvider.ElementContext - Interface in org.instancio.junit
An interface representing the context of an element (either a Field or Parameter) for which an object instance is being provided.

I

InstancioExtension - Class in org.instancio.junit
The Instancio JUnit extension adds support for additional features when using Instancio with JUnit Jupiter: reporting the seed value to allow reproducing failed tests injecting Settings using @WithSettings annotation generating parameterized test arguments using @InstancioSource injecting fields and method parameters using @Given aannotation
InstancioExtension() - Constructor for class org.instancio.junit.InstancioExtension
Default constructor; required for JUnit extensions.
InstancioExtension(ThreadLocalRandom, ThreadLocalSettings) - Constructor for class org.instancio.junit.InstancioExtension
 
InstancioSource - Annotation Type in org.instancio.junit
Provides arguments for @ParameterizedTest methods, supporting multiple arguments per test run.

O

org.instancio.junit - package org.instancio.junit
Provides Instancio JUnit 5 support.

P

provide(GivenProvider.ElementContext) - Method in interface org.instancio.junit.GivenProvider
Provides an instance of an object based on the given context.

R

random() - Method in interface org.instancio.junit.GivenProvider.ElementContext
Returns the random instance used by Instancio to generate data.
Reproducing failed tests - Search tag in class org.instancio.junit.InstancioExtension
Section
resolveParameter(ParameterContext, ExtensionContext) - Method in class org.instancio.junit.InstancioExtension
 

S

samples() - Element in annotation type org.instancio.junit.InstancioSource
Specifies the number of times to run the test, generating a new set of arguments each time.
Seed - Annotation Type in org.instancio.junit
Specifies the seed for the random number generator.
supportsParameter(ParameterContext, ExtensionContext) - Method in class org.instancio.junit.InstancioExtension
For methods, JUnit invokes (1) beforeEach(), (2) resolveParameter() For constructors, the order is reverse.

V

value() - Element in annotation type org.instancio.junit.Given
Specifies classes that will provide values for the annotated parameter or field.
value() - Element in annotation type org.instancio.junit.Seed
Specifies seed value for the Random Number Generator.

W

WithSettings - Annotation Type in org.instancio.junit
An annotation for supplying custom settings to a unit test class.
A B G I O P R S V W 
All Classes and Interfaces|All Packages