public class ResourceStateVerifier
extends java.lang.Object
SingleNodeApplication testing.SingleNodeIntegrationTestSupport| Constructor and Description |
|---|
ResourceStateVerifier(DeploymentStatusRepository<?,java.lang.String> deploymentStatusRepository,
DomainRepository<? extends BaseDefinition,java.lang.String> domainRepository) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
waitForCreate(java.lang.String resourceName)
Wait for a resource definition to be created.
|
DeploymentUnitStatus.State |
waitForDeploy(java.lang.String resourceName)
Wait for a named resource to be completely deployed.
|
DeploymentUnitStatus.State |
waitForDeploy(java.lang.String resourceName,
boolean allowIncomplete)
Wait for a named resource to be deployed.
|
boolean |
waitForDestroy(java.lang.String resourceName)
Wait for a resource definition to be destroyed.
|
DeploymentUnitStatus.State |
waitForUndeploy(java.lang.String resourceName)
Wait for a named resource to be undeployed.
|
public ResourceStateVerifier(DeploymentStatusRepository<?,java.lang.String> deploymentStatusRepository, DomainRepository<? extends BaseDefinition,java.lang.String> domainRepository)
deploymentStatusRepository - the repository that tracks deployment statusdomainRepository - the resource definition repositorypublic DeploymentUnitStatus.State waitForDeploy(java.lang.String resourceName)
resourceName - the name of the resource being deployedpublic DeploymentUnitStatus.State waitForDeploy(java.lang.String resourceName, boolean allowIncomplete)
resourceName - the name of the resource being deployedallowIncomplete - if true, will return on State.incomplete or State.deployedpublic DeploymentUnitStatus.State waitForUndeploy(java.lang.String resourceName)
resourceName - the name of the resource being undeployedpublic boolean waitForCreate(java.lang.String resourceName)
resourceName - the name of the resource being created.public boolean waitForDestroy(java.lang.String resourceName)
resourceName - the name of the resource being destroyed.