How wouter-bauweraerts/instancio-fixture-builder works
Project type and purpose
• This is an open-source Java library (Maven multi-module project) that provides an annotation processor and code generator to produce “fixture builder” classes for test data. Users annotate their POJOs with @GenerateFixtureBuilder, and at compile time the processor generates builder classes they can use in unit tests.
File structure
• Top-level modules:
• instancio-fixture-builder – the core annotation processor and generator
• instancio-fixture-builder-tests – an integration test module that verifies generated builders
• docs – static site for documentation
• .github/workflows – CI pipelines (build, test, release)
• pom.xml – aggregator POM
• Core module layout (instancio-fixture-builder/src/main/java/io/github/...):
• fixture/builder – abstract base and entry point (AbstractFixtureBuilder, GenerateFixtureBuilder annotation, InstancioModel)
• fixture/builder/processor – FixtureBuilderProcessor (implements javax.annotation.processing.Processor)
• fixture/builder/generator – FixtureBuilderGenerator and a suite of Factory classes (BuildMethodFactory, NameFactory, etc.) that use the Factory pattern to assemble the generated Java source
• resources – instancio.properties configuration
• Test module mirrors user code, running the processor on dummy classes and asserting the generated builder code.