Registry / testing / system-lambda

system-lambda

JSON →
library1.2.1javamavenunverified

A collection of functions for testing code which uses java.lang.System.

<dependency> <groupId>com.github.stefanbirkner</groupId> <artifactId>system-lambda</artifactId> <version>1.2.1</version> </dependency>
INSTALL
IMPORT
SIG · SYSTEM-LAMBDA
S
system-lambda
testingjavav1.2.1
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.

SystemLambda
com.github.stefanbirkner.systemlambda.SystemLambda

Captures system output using SystemLambda.tapSystemOut

import com.github.stefanbirkner.systemlambda.SystemLambda; public class Example { public static void main(String[] args) throws Exception { String text = SystemLambda.tapSystemOut(() -> { System.out.print("Hello"); }); System.out.println(text); // prints "Hello" } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
system-lambda — mvn dependency:get system-lambda · libregistry