public abstract class AbstractTaskLauncherIntegrationTests extends AbstractIntegrationTests
TaskLauncher
implementations.
Inheritors should setup an environment with a newly created
TaskLauncher
.
Tests in this class are independent and leave the
launcher in a clean state after they successfully run.
As deploying a task is often quite time consuming, some tests assert various aspects of deployment in a row, to avoid re-deploying apps over and over again.
AbstractIntegrationTests.Config
deployments, log, mavenProperties, name
Constructor and Description |
---|
AbstractTaskLauncherIntegrationTests() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp() |
protected org.hamcrest.Matcher<String> |
hasStatusThat(org.hamcrest.Matcher<TaskStatus> statusMatcher)
A Hamcrest Matcher that queries the deployment status for some task id.
|
protected abstract TaskLauncher |
taskLauncher() |
void |
testCommandLineArgs()
Tests that command line args can be passed in.
|
void |
testErrorExit() |
void |
testNonExistentAppsStatus() |
void |
testReLaunch() |
void |
testSimpleCancel() |
void |
testSimpleLaunch() |
deploymentTimeout, randomName, record, redeploymentPause, testApplication, undeploymentTimeout
public AbstractTaskLauncherIntegrationTests()
protected abstract TaskLauncher taskLauncher()
public void testNonExistentAppsStatus()
public void testSimpleLaunch() throws InterruptedException
InterruptedException
public void testReLaunch() throws InterruptedException
InterruptedException
public void testErrorExit() throws InterruptedException
InterruptedException
public void testSimpleCancel() throws InterruptedException
InterruptedException
public void testCommandLineArgs()
public void cleanUp()
protected org.hamcrest.Matcher<String> hasStatusThat(org.hamcrest.Matcher<TaskStatus> statusMatcher)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.