system-lambda icon indicating copy to clipboard operation
system-lambda copied to clipboard

System Lambda is a collection of functions for testing code that uses java.lang.System

Results 16 system-lambda issues
Sort by recently updated
recently updated
newest added
trafficstars

added maven files to ignore

git filter-branch --tree-filter 'rm -r .mvn/ mvnw.cmd mvnw. .editorconfig' HEAD

#30 github workflows yml script uses the matrix of java versions notation add method should now no longer throw a warning about Illegal Reflective Access maven files are no longer...

Running UT with java17 showed that warning ```code WARNING: A terminally deprecated method in java.lang.System has been called WARNING: System::setSecurityManager has been called by com.github.stefanbirkner.systemlambda.SystemLambda ``` Just reporting the issue

Running a test suite that leverages `WithEnvironmentVariables` in a docker container based on `openjdk:11-jdk`, I get the following warning: ``` WARNING: An illegal reflective access operation has occurred WARNING: Illegal...

When I run this code: `for (File image : testImages) { String[] args = {"imageconvert", "-f", "JPEG", image.toString(), "src/test/resources/testoutput"}; try { int exitcode = catchSystemExit(() -> { Main.main(args); }); assertEquals(0,...

I'm seeing: ``` java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Map java.util.Collections$UnmodifiableMap.m accessible: module java.base does not "opens java.util" to unnamed module @50134894 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177) at...

at the moment it is possible to catch System.exit and assert on that. My code (some kind of script) only calls System.exit(1) if anything weird happened but does not call...

status: waiting for response

It would be great if system-lambda would also provide a facility to change the current working directory. As far as I am aware, this requires two things at the same...