Package org.junitpioneer.jupiter.json
package org.junitpioneer.jupiter.json
Provides parameterized test arguments from JSON (inline or file).
Note that these extensions require a JSON parser to be available at run time,
which may include adding it to the module graph with --add-modules.
For details on that, see
the documentation on the JSON argument source.
Check out the following types for details on providing values for parameterized tests:
-
ClassDescriptionAbstractJsonArgumentsProvider<A extends Annotation>Provides arguments from JSON files specified with
JsonFileSource.AJsonConverterusing Jackson 2ObjectMapperto perform the conversionANodeimplementation for Jackson 2.@JsonClasspathSourceis anArgumentsSourcethat loads JSON from a classpath resource, parses it, and passes it as arguments to a parametrized test.Provides arguments from JSON files specified withJsonClasspathSource.A JSON Converter which parses an input stream into a Node.@JsonFileSourceis anArgumentsSourcethat loads JSON from a file, parses it, and passes it as arguments to a parametrized test.Provides arguments from JSON files specified withJsonFileSource.Provides arguments from inline JSON specified withJsonSource.@JsonSourceis anArgumentsSourcethat parses inline JSON and passes it as arguments to a parametrized test.A node representing a JSON structure.Indicates that no supported JSON parsing library was found at run time.Service interface for providing a customObjectMapperinstance at runtime.An annotation indicating the name of the JSON property that should be extracted into the method parameter.