Add beforeeach module: @BeforeEach/@AfterEach lifecycle demos on JUnit 6.1.3 (JDK 25)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6FRR2Dk1163xJ5CdV
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
@BeforeEach (about to fail)
|
||||
@AfterEach, resource is null
|
||||
@BeforeEach (about to fail)
|
||||
@AfterEach, resource is null
|
||||
-- results --
|
||||
FAILED a() IllegalStateException: setup failed
|
||||
suppressed NullPointerException: Cannot invoke "java.lang.AutoCloseable.close()" because "this.resource" is null
|
||||
FAILED b() IllegalStateException: setup failed
|
||||
suppressed NullPointerException: Cannot invoke "java.lang.AutoCloseable.close()" because "this.resource" is null
|
||||
SUCCESSFUL Fixtures$BeforeEachFails
|
||||
Reference in New Issue
Block a user