Package org.instancio.junit


package org.instancio.junit
Provides Instancio JUnit 5 support.
  • Class
    Description
    Indicates that a field or parameter should be automatically generated with a random value during test execution.
    An interface for providing instances of objects that can be injected into fields or parameters using the @Given annotation.
    An interface representing the context of an element (either a Field or Parameter) for which an object instance is being provided.
    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
    Provides arguments for @ParameterizedTest methods, supporting multiple arguments per test run.
    Specifies the seed for the random number generator.
    An annotation for supplying custom settings to a unit test class.