Class InstancioArgumentsGeneratorFactory
java.lang.Object
edu.berkeley.cs.jqf.fuzz.instancio.InstancioArgumentsGeneratorFactory
- All Implemented Interfaces:
ArgumentsGeneratorFactory
public final class InstancioArgumentsGeneratorFactory
extends Object
implements ArgumentsGeneratorFactory
Builds Instancio-backed
ArgumentsGenerators.
This is a second reference provider, alongside the junit-quickcheck one. It
exists to show that ArgumentsGeneratorFactory is generation-library
agnostic: the engine and both run paths drive it without depending on Instancio.
It is discovered through ServiceLoader, or selected per test
with @FuzzTest(arguments = InstancioArgumentsGeneratorFactory.class).
Instancio is a seed-based generator, so Zest steers it through a single seed per parameter rather than a byte-by-byte decoding. That gives coarser control than junit-quickcheck; see the module README for the trade-off.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a generator bound to the given test method.
-
Constructor Details
-
InstancioArgumentsGeneratorFactory
public InstancioArgumentsGeneratorFactory()
-
-
Method Details
-
create
Description copied from interface:ArgumentsGeneratorFactoryCreates a generator bound to the given test method.- Specified by:
createin interfaceArgumentsGeneratorFactory- Parameters:
testClass- the class declaring the test methodtestMethod- the test method whose arguments will be generated- Returns:
- a generator for the method's parameters
-