Created
May 12, 2020 11:59
-
-
Save markusdybeck/8d6ee053feed95b2e6941e0b4db6a612 to your computer and use it in GitHub Desktop.
Medium snippet 1
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
public class TestExtension implements BeforeAllCallback { | |
private static final ExtensionContext.Namespace NAMESPACE = ExtensionContext.Namespace.create("TestExtension"); | |
private static final String TEST_CONTEXT_PLACEHOLDER = "testContext"; | |
@Override | |
public void beforeAll(final ExtensionContext extensionContext) throws Exception { | |
if (TestExtensionInitializer.INSTANCE.initialize()) { | |
var testContext = TestContext.init(); | |
extensionContext.getRoot() | |
.getStore(NAMESPACE) | |
.put(TEST_CONTEXT_PLACEHOLDER, testContext); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment