junit5 - In JUnit 5, how to run code before all tests -
the @beforeall
annotation marks method run before tests in class.
http://junit.org/junit5/docs/current/user-guide/#writing-tests-annotations
but there way run code before all tests, in classes?
i want ensure tests use set of database connections, , global one-time setup of these connections must occur before running any tests.
currently not supported, there pull request junit 5 regarding topic: introduce support before/after callbacks once per entire test run.
Comments
Post a Comment