public class TemporaryJobs extends Object implements org.junit.rules.TestRule
Modifier and Type | Class and Description |
---|---|
static class |
TemporaryJobs.Builder |
Modifier and Type | Method and Description |
---|---|
void |
after()
Perform teardown.
|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
void |
before()
Perform setup.
|
static TemporaryJobs.Builder |
builder() |
static TemporaryJobs.Builder |
builder(String profile) |
HeliosClient |
client() |
static TemporaryJobs |
create()
Creates a new instance of TemporaryJobs.
|
static TemporaryJobs |
create(HeliosClient client) |
static TemporaryJobs |
create(String domain) |
static TemporaryJobs |
createFromProfile(String profile) |
TemporaryJobBuilder |
job() |
com.spotify.helios.testing.JobPrefixFile |
jobPrefixFile() |
TemporaryJobBuilder |
jobWithConfig(String configFile) |
String |
prefix() |
public void before()
job()
.
Note: When not being used as a @Rule, jobs will not be monitored during test run.
public void after()
public TemporaryJobBuilder job()
public TemporaryJobBuilder jobWithConfig(String configFile) throws IOException
IOException
public static TemporaryJobs create()
domain
or
endpoints if present. If both are specified, domain
takes precedence.5801
.http://localhost:5801
public static TemporaryJobs create(HeliosClient client)
public static TemporaryJobs create(String domain)
public static TemporaryJobs createFromProfile(String profile)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
public com.spotify.helios.testing.JobPrefixFile jobPrefixFile()
public String prefix()
public HeliosClient client()
public static TemporaryJobs.Builder builder()
public static TemporaryJobs.Builder builder(String profile)
Copyright © 2017. All rights reserved.