eclipse-vertx / vertx-junit5

Testing Vert.x applications with JUnit 5
Apache License 2.0
44 stars 32 forks source link

Document different context for setup, test and teardown #68

Closed tombentley closed 4 years ago

tombentley commented 4 years ago

In the documentation for JunitTestContext (i.e. https://vertx.io/docs/vertx-junit5/java/#_a_test_context_for_asynchronous_executions) it doesn't mention that any @BeforeEach/@AfterEach-annotated method gets a different context instance. I, at least, was surprised by this, so it's possibly worth mentioning.

tombentley commented 4 years ago

My mistake. I just wasn't looking in the right place: https://vertx.io/docs/vertx-junit5/java/#_scope_of_code_vertxtestcontext_code_objects