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, waitafter, apply, verify, verifyAllpublic 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
JunitJupiterExtensionLikeTestRulebeforeAll in interface JunitJupiterExtensionLikeTestRulebase - The Statement to be modifieddescription - A Description of the test implemented in basejava.lang.Exception - if an error occurrespublic void before(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
throws java.lang.Exception
JunitJupiterExtensionLikeTestRulebefore in interface JunitJupiterExtensionLikeTestRulebase - The Statement to be modifieddescription - A Description of the test implemented in basejava.lang.Exception - if an error occurrespublic void afterAll(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
throws java.lang.Exception
JunitJupiterExtensionLikeTestRuleafterAll in interface JunitJupiterExtensionLikeTestRulebase - The Statement to be modifieddescription - A Description of the test implemented in basejava.lang.Exception - if an error occurres