Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.*;
@ExtendWith(MyIntegrationTestExtension.class)
class MyIntegrationTests {
@Test
void test() {
// ...
}
}
class MyIntegrationTestExtension implements BeforeAllCallback, AfterAllCallback {
@Override
public void beforeAll(ExtensionContext context) {
// Préparation du contexte de test
}
@Override
public void afterAll(ExtensionContext context) {
// Destruction du contexte de test
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment