public class SetupListTestRule extends AbstractTestRule<Setup.List>
@Setup
annotations before test method execution.Constructor and Description |
---|
SetupListTestRule(org.junit.runners.model.FrameworkMethod frameworkMethod)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
before()
If the method is annotated with @
Setup , set up the database. |
void |
setSetupExecutor(SetupExecutor setupExecutor)
Set setup executor.
|
after, apply, getAnnotation, getTestMethod
public SetupListTestRule(org.junit.runners.model.FrameworkMethod frameworkMethod)
frameworkMethod
- JUnit framework method on which the test rule is being appliedprotected void before()
Setup
, set up the database.before
in class AbstractTestRule<Setup.List>
public void setSetupExecutor(SetupExecutor setupExecutor)
setupExecutor
- executorCopyright © 2011–2020 Lastware, sro.. All rights reserved.