# org.junit.jupiter.api.extension.ParameterResolutionException: No ParameterResolver registered for parameter [java.lang.String arg0] in method testFactory

- **ID:** `java/junit-test-factory-no-parameters`
- **Domain:** java
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

@TestFactory method has parameters but no source, or parameters are not supported for dynamic tests.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 8+ | active | — | — |

## Workarounds

1. **Remove parameters from @TestFactory method** (95% success)
   ```
   @TestFactory
Stream<DynamicTest> testFactory() {
    return Stream.of("a", "b").map(input ->
        DynamicTest.dynamicTest("Test " + input, () -> {
            assertNotNull(input);
        })
    );
}
   ```
2. **Use @TestTemplate instead** (70% success)
   ```
   @TestTemplate
@ExtendWith(MyExtension.class)
void testTemplate(String input) {
    // implementation
}
   ```

## Dead Ends

- **Adding @ParameterizedTest instead of @TestFactory** — Changes test type; may not produce dynamic tests. (50% fail)
- **Removing parameters and using hardcoded values** — Reduces test flexibility. (40% fail)
