Files
JUnit_Tutorials/extendwith/output/junit5/08-original-examples.txt
T
2026-11-06 21:43:57 +05:30

18 lines
667 B
Plaintext

OriginalExamplesFixture (PerformanceTrackerExtension, TransactionalExtension)
>>> PERFORMANCE: Test [myTest()] took N ms
>>> DB: Starting Transaction for testUserSave()
Executing: Saving User to DB
>>> DB: Rolling back Transaction for testUserSave()
-- results
myTest() -> SUCCESSFUL
testUserSave() -> SUCCESSFUL
RegisterExtensionFixture (TempDirectoryExtension)
>>> EXTENSION: Initializing directory at /custom/path/logs
Using directory: /custom/path/logs
>>> EXTENSION: Cleaning up directory at /custom/path/logs
-- results
testLogCreation() -> SUCCESSFUL
(the millisecond figure is masked as N; the fixture sleeps 42 ms and the test asserts at least 42)