public interface EnvironmentPreparator<EnvironmentT extends Environment>
| Modifier and Type | Method and Description |
|---|---|
void |
clean(java.util.Collection<EnvironmentT> envs)
Performs best-effort try to clean prepared environments from all app related files.
|
void |
collectOutputAndLogFiles(java.util.Collection<EnvironmentT> envs,
java.nio.file.Path destPath)
Performs best-effort try to collect output and log files for report and put them into local
directory.
|
void |
prepare(java.util.Collection<EnvironmentT> envs)
Initializes environment with necessary files to run the application.
|
void |
restore(java.util.Collection<EnvironmentT> envs)
Cleans up environments from temporary application files and restores them to initial state.
|
void clean(java.util.Collection<EnvironmentT> envs)
envs - preprared Environmentsvoid collectOutputAndLogFiles(java.util.Collection<EnvironmentT> envs, java.nio.file.Path destPath)
envs - prepared environmentsdestPath - existing directory to put files tovoid prepare(java.util.Collection<EnvironmentT> envs) throws java.io.IOException
envs - Environments on which test will runjava.io.IOExceptionvoid restore(java.util.Collection<EnvironmentT> envs) throws java.io.IOException
envs - Environments to restorejava.io.IOException