Skip to content

@ExpectSystemExit does not work with @BeforeEach methods #33

@jesielviana

Description

@jesielviana

While using the junit5-system-exit extension to handle System.exit calls in JUnit 5 tests, I observed that the annotation @ExpectSystemExit works correctly when applied to test methods annotated with @test, but it does not intercept System.exit calls made inside @beforeeach methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions