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,12 @@
|
||||
new Sandwich()
|
||||
@BeforeEach
|
||||
@Test second
|
||||
@AfterEach
|
||||
new Sandwich()
|
||||
@BeforeEach
|
||||
@Test first
|
||||
@AfterEach
|
||||
-- results --
|
||||
SUCCESSFUL second()
|
||||
SUCCESSFUL first()
|
||||
SUCCESSFUL Fixtures$Sandwich
|
||||
Reference in New Issue
Block a user