Created
July 14, 2022 22:31
-
-
Save beyondxscratch/9255a2d3f11bf267bd3b4bc442305116 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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