✅ The programmer-friendly testing framework for Java and the JVM
This report summarizes scanner evidence for junit-team/junit-framework, a Java project with 7,059 GitHub stars. SynthScan examined 248,949 lines of code across 2213 source files, recording 79 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 2.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 15 finding(s).
Are imports declared and package/API names verified? 54 finding(s).
Are wrappers, guards, and repeated structures necessary? 10 finding(s).
Which changes need focused human review? 79 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 79 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …/org/junit/platform/engine/EngineDiscoveryRequest.java | 104 | return org.junit.platform.engine.reporting.OutputDirectoryProvider.castOrAdapt(getOutputDirectoryCreator()); | CODE |
| CRITICAL | …n/java/org/junit/platform/engine/ExecutionRequest.java | 163 | return org.junit.platform.engine.reporting.OutputDirectoryProvider.castOrAdapt(getOutputDirectoryCreator()); | CODE |
| CRITICAL | …/support/discovery/EngineDiscoveryRequestResolver.java | 240 | ResourceFilter.of(r -> resourceFilter.test(org.junit.platform.commons.support.Resource.of(r)))); | CODE |
| CRITICAL | documentation/src/test/java/example/SuiteDemo.java | 24 | @org.junit.platform.suite.api.ExcludeTags("exclude") | CODE |
| CRITICAL | …mentation/src/test/java/example/RepeatedTestsDemo.java | 27 | @org.junit.jupiter.api.parallel.Execution(org.junit.jupiter.api.parallel.ExecutionMode.SAME_THREAD) | CODE |
| CRITICAL | …umentation/src/test/kotlin/example/kotlin/SuiteDemo.kt | 20 | @org.junit.platform.suite.api.ExcludeTags("exclude") | CODE |
| CRITICAL | …org/junit/platform/testkit/engine/EventConditions.java | 332 | // The underlying cause is that org.assertj.core.condition.Join.Join(Condition<? super T>...) | COMMENT |
| CRITICAL | …org/junit/platform/testkit/engine/EventConditions.java | 334 | // org.assertj.core.condition.Join.Join(Iterable<? extends Condition<? super T>>) | COMMENT |
| CRITICAL | …ain/java/org/junit/platform/testkit/engine/Events.java | 360 | * Shortcut for {@code org.assertj.core.api.Assertions.assertThat(events.list())}. | COMMENT |
| CRITICAL | …ain/java/org/junit/platform/testkit/engine/Events.java | 367 | return org.assertj.core.api.Assertions.assertThat(list()); | CODE |
| CRITICAL | …java/org/junit/platform/testkit/engine/Executions.java | 203 | * Shortcut for {@code org.assertj.core.api.Assertions.assertThat(executions.list())}. | COMMENT |
| CRITICAL | …java/org/junit/platform/testkit/engine/Executions.java | 210 | return org.assertj.core.api.Assertions.assertThat(list()); | CODE |
| CRITICAL | …/org/junit/jupiter/api/extension/ExtensionContext.java | 733 | public static final Namespace GLOBAL = new Namespace(org.junit.jupiter.api.store.Namespace.GLOBAL.getParts()); | CODE |
| CRITICAL | …it/jupiter/params/ParameterizedTestExtensionTests.java | 320 | org.junit.platform.engine.support.store.Namespace.create(namespace.getParts())); | CODE |
| CRITICAL⚡ | …org/junit/jupiter/api/AssertionFailureBuilderTest.java | 34 | \\Qorg.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:\\E.+ | STRING |
| CRITICAL⚡ | …org/junit/jupiter/api/AssertionFailureBuilderTest.java | 36 | \\Qorg.junit.jupiter.api.AssertionFailureBuilderTest.doesNotTrimByDefault(AssertionFailureBuilderTest.java:\\E.+ | STRING |
| CRITICAL⚡ | …org/junit/jupiter/api/AssertionFailureBuilderTest.java | 46 | \\Qorg.junit.jupiter.api.AssertionFailureBuilderTest.trimsUpToAssertionsFacade(AssertionFailureBuilderTest.java:\\E | STRING |
| CRITICAL | …org/junit/jupiter/api/AssertionFailureBuilderTest.java | 57 | \\Qorg.junit.jupiter.api.AssertionFailureBuilderTest.trimsUpToAssertionsFacadeKeepingOne(AssertionFailureBuilderTes | STRING |
| CRITICAL⚡ | …org/junit/jupiter/api/AssertionFailureBuilderTest.java | 68 | \\Qorg.junit.jupiter.api.AssertionFailureBuilderTest.trimsUpToAssertionFailureBuilder(AssertionFailureBuilderTest.j | STRING |
| CRITICAL⚡ | …org/junit/jupiter/api/AssertionFailureBuilderTest.java | 78 | \\Qorg.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:\\E.+ | STRING |
| CRITICAL⚡ | …org/junit/jupiter/api/AssertionFailureBuilderTest.java | 80 | \\Qorg.junit.jupiter.api.AssertionFailureBuilderTest.ignoresClassNotInStackTrace(AssertionFailureBuilderTest.java:\ | STRING |
| CRITICAL | …a/org/junit/jupiter/engine/NestedTestClassesTests.java | 361 | return source(org.junit.platform.engine.support.descriptor.MethodSource.from(method)); | CODE |
| CRITICAL | …a/org/junit/jupiter/engine/NestedTestClassesTests.java | 365 | return source(org.junit.platform.engine.support.descriptor.MethodSource.from(testClass, method)); | CODE |
| CRITICAL | …org/junit/jupiter/engine/discovery/DiscoveryTests.java | 388 | .contains(org.junit.platform.engine.support.descriptor.MethodSource.from(method)); | CODE |
| CRITICAL | …org/junit/jupiter/engine/discovery/DiscoveryTests.java | 410 | .contains(org.junit.platform.engine.support.descriptor.MethodSource.from(method)); | CODE |
| CRITICAL | …jupiter/engine/descriptor/LauncherStoreFacadeTest.java | 38 | private org.junit.jupiter.api.store.Namespace extensionNamespace = org.junit.jupiter.api.store.Namespace.create( | CODE |
| CRITICAL | …t/jupiter/engine/descriptor/ExtensionContextTests.java | 478 | context.getStore(org.junit.jupiter.api.store.Namespace.create("x")).put("key", "value"); | CODE |
| CRITICAL | …t/jupiter/engine/descriptor/ExtensionContextTests.java | 481 | org.junit.jupiter.api.store.Namespace.create("x")).get("key")); | CODE |
| CRITICAL | …rg/junit/jupiter/engine/descriptor/NamespaceTests.java | 40 | var ns2 = org.junit.jupiter.api.store.Namespace.create("part1", "part2"); | CODE |
| CRITICAL⚡ | …piter/engine/descriptor/LifecycleMethodUtilsTests.java | 55 | "@BeforeAll method 'private java.lang.Double org.junit.jupiter.engine.descriptor.TestCaseWithInvalidLifecycleMethods. | CODE |
| CRITICAL⚡ | …piter/engine/descriptor/LifecycleMethodUtilsTests.java | 59 | "@BeforeAll method 'private java.lang.Double org.junit.jupiter.engine.descriptor.TestCaseWithInvalidLifecycleMethods. | CODE |
| CRITICAL⚡ | …piter/engine/descriptor/LifecycleMethodUtilsTests.java | 63 | "@BeforeAll method 'private java.lang.Double org.junit.jupiter.engine.descriptor.TestCaseWithInvalidLifecycleMethods. | CODE |
| CRITICAL⚡ | …piter/engine/descriptor/LifecycleMethodUtilsTests.java | 76 | "@AfterAll method 'private java.lang.String org.junit.jupiter.engine.descriptor.TestCaseWithInvalidLifecycleMethods.d | CODE |
| CRITICAL⚡ | …piter/engine/descriptor/LifecycleMethodUtilsTests.java | 80 | "@AfterAll method 'private java.lang.String org.junit.jupiter.engine.descriptor.TestCaseWithInvalidLifecycleMethods.d | CODE |
| CRITICAL⚡ | …piter/engine/descriptor/LifecycleMethodUtilsTests.java | 84 | "@AfterAll method 'private java.lang.String org.junit.jupiter.engine.descriptor.TestCaseWithInvalidLifecycleMethods.d | CODE |
| CRITICAL | …piter/engine/descriptor/LifecycleMethodUtilsTests.java | 97 | "@BeforeEach method 'private java.lang.String org.junit.jupiter.engine.descriptor.TestCaseWithInvalidLifecycleMethods | CODE |
| CRITICAL | …piter/engine/descriptor/LifecycleMethodUtilsTests.java | 101 | "@BeforeEach method 'private java.lang.String org.junit.jupiter.engine.descriptor.TestCaseWithInvalidLifecycleMethods | CODE |
| CRITICAL | …piter/engine/descriptor/LifecycleMethodUtilsTests.java | 114 | "@AfterEach method 'private int org.junit.jupiter.engine.descriptor.TestCaseWithInvalidLifecycleMethods.bb()' must no | CODE |
| CRITICAL | …piter/engine/descriptor/LifecycleMethodUtilsTests.java | 118 | "@AfterEach method 'private int org.junit.jupiter.engine.descriptor.TestCaseWithInvalidLifecycleMethods.bb()' should | CODE |
| CRITICAL | …piter/engine/descriptor/LifecycleMethodUtilsTests.java | 153 | "@BeforeAll method 'void org.junit.jupiter.engine.descriptor.TestCaseWithStandardLifecycle.one()' must be static unle | CODE |
| CRITICAL | …st/java/org/junit/platform/StackTracePruningTests.java | 78 | \\Qorg.junit.jupiter.api.Assertions.fail(Assertions.java:\\E.+ | CODE |
| CRITICAL | …st/java/org/junit/platform/StackTracePruningTests.java | 80 | \\Qorg.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:\\E.+ | CODE |
| CRITICAL | …st/java/org/junit/platform/StackTracePruningTests.java | 95 | \\Qorg.junit.jupiter.api.Assertions.fail(Assertions.java:\\E.+ | CODE |
| CRITICAL | …st/java/org/junit/platform/StackTracePruningTests.java | 111 | \\Qorg.junit.jupiter.api.Assumptions.assumeTrue(Assumptions.java:\\E.+ | CODE |
| CRITICAL | …st/java/org/junit/platform/StackTracePruningTests.java | 127 | \\Qorg.junit.jupiter.api.Assertions.fail(Assertions.java:\\E.+ | CODE |
| CRITICAL | …st/java/org/junit/platform/StackTracePruningTests.java | 146 | \\Qorg.junit.jupiter.api.Assertions.fail(Assertions.java:\\E.+ | CODE |
| CRITICAL⚡ | …ore/DiscoveryIssueReportingDiscoveryListenerTests.java | 77 | org.junit.platform.engine.support.descriptor.MethodSource.from("SomeClass", "someMethod", "int,int")), // | CODE |
| CRITICAL⚡ | …ore/DiscoveryIssueReportingDiscoveryListenerTests.java | 81 | org.junit.platform.engine.support.descriptor.FilePosition.from(42))), // | CODE |
| CRITICAL⚡ | …ore/DiscoveryIssueReportingDiscoveryListenerTests.java | 84 | org.junit.platform.engine.support.descriptor.FilePosition.from(42, 23))), // | CODE |
| CRITICAL⚡ | …ore/DiscoveryIssueReportingDiscoveryListenerTests.java | 90 | org.junit.platform.engine.support.descriptor.FilePosition.from(42))), // | CODE |
| CRITICAL⚡ | …ore/DiscoveryIssueReportingDiscoveryListenerTests.java | 93 | org.junit.platform.engine.support.descriptor.FilePosition.from(42, 23))), // | CODE |
| CRITICAL | …rc/main/java/org/junit/platform/launcher/TestPlan.java | 300 | return org.junit.platform.engine.reporting.OutputDirectoryProvider.castOrAdapt(getOutputDirectoryCreator()); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | …/jupiter/params/ParameterizedTestIntegrationTests.java | 209 | #--------------------------------- | COMMENT |
| MEDIUM⚡ | …/jupiter/params/ParameterizedTestIntegrationTests.java | 211 | #--------------------------------- | COMMENT |
| MEDIUM⚡ | …/jupiter/params/ParameterizedTestIntegrationTests.java | 213 | #--------------------------------- | COMMENT |
| MEDIUM⚡ | …/jupiter/params/ParameterizedTestIntegrationTests.java | 215 | #--------------------------------- | COMMENT |
| MEDIUM⚡ | …/jupiter/params/ParameterizedTestIntegrationTests.java | 217 | #--------------------------------- | COMMENT |
| MEDIUM⚡ | …/jupiter/params/ParameterizedTestIntegrationTests.java | 219 | #--------------------------------- | COMMENT |
| MEDIUM⚡ | …/jupiter/params/ParameterizedTestIntegrationTests.java | 221 | #--------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …cumentation/src/test/java/example/ExampleTestCase.java | 32 | @Disabled("for demonstration purposes") | CODE |
| MEDIUM | documentation/src/test/java/example/StandardTests.java | 47 | @Disabled("for demonstration purposes") | CODE |
| MEDIUM | …va/example/testkit/EngineTestKitSkippedMethodDemo.java | 43 | skippedWithReason("for demonstration purposes"))); | CODE |
| MEDIUM | …t/java/example/testkit/EngineTestKitAllEventsDemo.java | 56 | event(test("skippedTest"), skippedWithReason("for demonstration purposes")), | CODE |
| MEDIUM | …tation/src/test/kotlin/example/kotlin/StandardTests.kt | 41 | @Disabled("for demonstration purposes") | CODE |
| MEDIUM | …tion/src/test/kotlin/example/kotlin/ExampleTestCase.kt | 29 | @Disabled("for demonstration purposes") | CODE |
| MEDIUM | …n/example/kotlin/testkit/EngineTestKitAllEventsDemo.kt | 51 | event(test("skippedTest"), skippedWithReason("for demonstration purposes")), | CODE |
| MEDIUM | …ample/kotlin/testkit/EngineTestKitSkippedMethodDemo.kt | 38 | .haveExactly(1, event(test(methodName), skippedWithReason("for demonstration purposes"))) | CODE |
| MEDIUM | …/FlightRecordingExecutionListenerIntegrationTests.java | 78 | .with("reason", "for demonstration purposes")); | CODE |
| MEDIUM | …/FlightRecordingExecutionListenerIntegrationTests.java | 89 | @Disabled("for demonstration purposes") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …/jupiter/params/ParameterizedTestIntegrationTests.java | 0 | the '%s' configuration parameter is no longer supported. \ please remove it from your configuration. | STRING |
| HIGH | …junit/jupiter/engine/extension/TempDirectoryTests.java | 0 | the '%s' configuration parameter is no longer supported. \ please remove it from your configuration. | STRING |
| HIGH | …jupiter/engine/config/DefaultJupiterConfiguration.java | 0 | the '%s' configuration parameter is no longer supported. \ please remove it from your configuration. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …va/platform/tooling/support/tests/JUnitStartTests.java | 83 | .addArguments("compact/JUnitRun.java") // leverage Java's source mode | CODE |
| MEDIUM | …va/platform/tooling/support/tests/JUnitStartTests.java | 98 | .addArguments("compact/JUnitRunClass.java") // leverage Java's source mode | CODE |
| MEDIUM | …va/platform/tooling/support/tests/JUnitStartTests.java | 113 | .addArguments("modular/p/JUnitRunModule.java") // leverage Java's source mode | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …tion/src/test/java/example/timing/TimingExtension.java | 61 | // end::user_guide[] | COMMENT |
| LOW | …t/java/example/exception/MultipleHandlersTestCase.java | 61 | // end::user_guide[] | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …iter/params/aggregator/AggregatorIntegrationTests.java | 207 | assertEquals("Jane Doe", person.getFullName()); | CODE |
| LOW | …ng/open/xml/OpenTestReportGeneratingListenerTests.java | 201 | execGit(tempDirectory, "config", "user.email", "alice@example.org"); | STRING |