Skip to content
Advertisement

Tag: parameterized-tests

Junit5 Parameterized Test LifeCycle. why @BeforeAll and static block run after all the tests

I am posting a simple code below, why does @BeforeAll annotated method and static block run after the Parameterized tests? How do I register a common object or Database connection in this case before loading the Parameterized test in Junit5 or leverage the functionality of @BeforeAll or static block. (FYI: The equivalent code for Parameterized test in Junit4 runs static

Advertisement