-- Leo's gemini proxy
-- Connecting to g.mikf.pl:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
Scavenging the codebases for ways to do it, two main libraries exploiting reflection were found for this:
org.junit-pioneer junit-pioneer
import org.junitpioneer.jupiter.SetEnvironmentVariable
These are per-test-method annotations for JUnit5.
uk.org.webcompere system-stubs-core | system-stubs-junit4 | system-stubs-jupiter
Core - "system stub object" with setters and an execute method that is given a lambda
JUnit 4 - a @Rule annotation for a "rule object" with setters and acting on the whole test class
Junit 5 - an extension creating instances for parametrizing test methods or as test class field (initialized BeforeEach implicitly from annotation)
System Stubs JUnit4 Test Rules Plugin was made equivalent to previously existing System Rules project.
-- Response ended
-- Page fetched on Tue May 21 18:25:06 2024