Add junit-6-migration module: JUnit 5.14.4 vs 6.1.3, API diff and behaviour probes

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YPgGH6aMbSLANL3E2HHmS6
This commit is contained in:
2026-10-25 18:46:52 +00:00
co-authored by Claude Sonnet 5.5
parent 8fc8bc934f
commit 820318be7d
22 changed files with 1018 additions and 0 deletions
@@ -0,0 +1,32 @@
JUnit 5.14.4, compiling FixedApis.java
src/compat/FixedApis.java:1: error: package org.junit.jupiter.api does not exist
import org.junit.jupiter.api.MethodOrderer;
^
src/compat/FixedApis.java:2: error: package org.junit.jupiter.api does not exist
import org.junit.jupiter.api.Test;
^
src/compat/FixedApis.java:3: error: package org.junit.jupiter.api does not exist
import org.junit.jupiter.api.TestMethodOrder;
^
src/compat/FixedApis.java:4: error: package org.junit.platform.commons.support does not exist
import org.junit.platform.commons.support.ReflectionSupport;
^
src/compat/FixedApis.java:7: error: cannot find symbol
@TestMethodOrder(MethodOrderer.MethodName.class)
^
symbol: class TestMethodOrder
src/compat/FixedApis.java:7: error: package MethodOrderer does not exist
@TestMethodOrder(MethodOrderer.MethodName.class)
^
src/compat/FixedApis.java:10: error: cannot find symbol
@Test
^
symbol: class Test
location: class FixedApis
src/compat/FixedApis.java:12: error: cannot find symbol
Object loaded = ReflectionSupport.tryToLoadClass("java.lang.String").toOptional().orElseThrow();
^
symbol: variable ReflectionSupport
location: class FixedApis
8 errors
javac exit status: 1