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,6 @@
|
||||
@BeforeEach
|
||||
@Test boom
|
||||
@AfterEach (runs although the test failed)
|
||||
-- results --
|
||||
FAILED boom() AssertionFailedError: this test is designed to fail
|
||||
SUCCESSFUL Fixtures$FailingTest
|
||||
Reference in New Issue
Block a user