public class LoadEsDataRule extends java.lang.Object implements JunitJupiterExtensionLikeTestRule
TestRule
to load data into Elasticsearch either before all tests, or before each test.Constructor and Description |
---|
LoadEsDataRule()
Constructor
|
LoadEsDataRule(EsDataLoader loader)
Constructor using the given loader.
|
Modifier and Type | Method and Description |
---|---|
void |
afterAll(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Callback that is called after all tests are executed.
|
void |
before(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Callback that is called after a test is executed.
|
void |
beforeAll(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Callback that is called before all tests are executed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
after, apply, verify, verifyAll
public LoadEsDataRule()
public LoadEsDataRule(EsDataLoader loader)
loader
- the loaderpublic void beforeAll(org.junit.runners.model.Statement base, org.junit.runner.Description description) throws java.lang.Exception
JunitJupiterExtensionLikeTestRule
beforeAll
in interface JunitJupiterExtensionLikeTestRule
base
- The Statement
to be modifieddescription
- A Description
of the test implemented in base
java.lang.Exception
- if an error occurrespublic void before(org.junit.runners.model.Statement base, org.junit.runner.Description description) throws java.lang.Exception
JunitJupiterExtensionLikeTestRule
before
in interface JunitJupiterExtensionLikeTestRule
base
- The Statement
to be modifieddescription
- A Description
of the test implemented in base
java.lang.Exception
- if an error occurrespublic void afterAll(org.junit.runners.model.Statement base, org.junit.runner.Description description) throws java.lang.Exception
JunitJupiterExtensionLikeTestRule
afterAll
in interface JunitJupiterExtensionLikeTestRule
base
- The Statement
to be modifieddescription
- A Description
of the test implemented in base
java.lang.Exception
- if an error occurres