Index
All Classes and Interfaces|All Packages
A
- afterEach(ExtensionContext) - Method in class org.instancio.junit.InstancioExtension
- afterTestExecution(ExtensionContext) - Method in class org.instancio.junit.InstancioExtension
B
- beforeEach(ExtensionContext) - Method in class org.instancio.junit.InstancioExtension
G
- getAnnotation(Class) - 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
- getTargetType() - Method in interface org.instancio.junit.GivenProvider.ElementContext
-
Returns the type of the element for which an instance is being provided.
- getTestInstantiationExtensionContextScope(ExtensionContext) - Method in class org.instancio.junit.InstancioExtension
-
Opting in to the test-method scope is recommended by JUnit for forward compatibility, as it is due to become the default behaviour.
- Given - Annotation Interface in org.instancio.junit
-
Indicates that a field or parameter should be automatically generated with a random value during test execution.
- Given.List - Annotation Interface in org.instancio.junit
-
Container for repeated
@Givendeclarations. - GivenProvider - Interface in org.instancio.junit
-
An interface for providing instances of objects that can be injected into fields or parameters using the
@Givenannotation. - GivenProvider.ElementContext - Interface in org.instancio.junit
I
- Inheritance - Section in annotation interface org.instancio.junit.WithSettings
- InstancioExtension - Class in org.instancio.junit
-
The Instancio JUnit extension adds support for additional features when using Instancio with the JUnit framework: reporting the seed value to allow reproducing failed tests injecting
Settingsusing@WithSettingsannotation injecting fields and method parameters using@Givenannotation - InstancioExtension() - Constructor for class org.instancio.junit.InstancioExtension
-
Default constructor; required for JUnit extensions.
N
- @Nested Test Classes - Section in annotation interface org.instancio.junit.WithSettings
O
- org.instancio.junit - module org.instancio.junit
- org.instancio.junit - package org.instancio.junit
-
Provides Instancio support for the JUnit framework.
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.
- Repeated declarations - Section in annotation interface org.instancio.junit.Given
- Reproducing failed tests - Section in class org.instancio.junit.InstancioExtension
- resolveParameter(ParameterContext, ExtensionContext) - Method in class org.instancio.junit.InstancioExtension
S
- Seed - Annotation Interface 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 interface org.instancio.junit.Given.List
-
The contained
@Givenannotations. - value() - Element in annotation interface org.instancio.junit.Given
-
Specifies classes that will provide values for the annotated parameter or field.
- value() - Element in annotation interface org.instancio.junit.Seed
-
Specifies seed value for the Random Number Generator.
W
- WithSettings - Annotation Interface in org.instancio.junit
-
An annotation for supplying custom settings to a unit test class.
All Classes and Interfaces|All Packages