Registry / testing / system-stubs-jupiter

system-stubs-jupiter

JSON →
library2.1.8javamavenunverified

JUnit Jupiter extension for System Stubs, enabling mocking of system properties, environment variables, and standard I/O in tests.

<dependency> <groupId>uk.org.webcompere</groupId> <artifactId>system-stubs-jupiter</artifactId> <version>2.1.8</version> </dependency>
INSTALL
IMPORT
SIG · SYSTEM-STUBS-JUPIT
S
system-stubs-jupiter
testingjavav2.1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SystemStubsExtension
uk.org.webcompere.systemstubs.jupiter.SystemStubsExtension

Register SystemStubsExtension to enable system stubs in JUnit 5 tests.

import uk.org.webcompere.systemstubs.jupiter.SystemStubsExtension; import org.junit.jupiter.api.extension.ExtendWith; @ExtendWith(SystemStubsExtension.class) class MyTest { // Test methods can use @SystemStub annotations }
Debug
Known issues
gotchaSystemStubsExtension may interfere with other extensions that modify system state; order of extensions matters.
fix
Use @RegisterExtension or order extensions explicitly with @ExtendWith.
affects: all
Upgrade
Version history
2.1.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
system-stubs-jupiter — mvn dependency:get system-stubs-jupiter · libregistry