public class CreateDSTestExtension extends Object implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
Constructor and Description |
---|
CreateDSTestExtension() |
Modifier and Type | Method and Description |
---|---|
void |
afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
We have to shutown the global DS now
|
void |
afterEach(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
In the BeforeALl method, we will create a DirectoryService instance that will be used by all
the tests for this class.
|
void |
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
Here, we will create a local directoryService if needed, and only if needed
|
public CreateDSTestExtension()
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
beforeAll
in interface org.junit.jupiter.api.extension.BeforeAllCallback
Exception
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
afterAll
in interface org.junit.jupiter.api.extension.AfterAllCallback
Exception
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
beforeEach
in interface org.junit.jupiter.api.extension.BeforeEachCallback
Exception
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.