com.xebialabs.deployit.test.support
Class TestUtils

java.lang.Object
  extended by com.xebialabs.deployit.test.support.TestUtils

public class TestUtils
extends java.lang.Object


Constructor Summary
TestUtils()
           
 
Method Summary
static
<T extends com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact>
T
createArtifact(java.lang.String name, java.lang.String version, java.lang.String classpathResource, java.lang.String type, java.io.File workingFolder)
           
static
<T extends com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact>
T
createArtifactWithoutCopy(java.lang.String name, java.lang.String version, java.lang.String classpathResource, java.lang.String type, java.io.File workingFolder)
           
static com.xebialabs.deployit.plugin.api.udm.DeployedApplication createDeployedApplication(com.xebialabs.deployit.plugin.api.udm.DeploymentPackage pkg, com.xebialabs.deployit.plugin.api.udm.Environment env)
           
static com.xebialabs.deployit.plugin.api.udm.DeploymentPackage createDeploymentPackage(com.xebialabs.deployit.plugin.api.udm.Deployable... deployables)
           
static com.xebialabs.deployit.plugin.api.udm.DeploymentPackage createDeploymentPackage(java.lang.String version, com.xebialabs.deployit.plugin.api.udm.Deployable... deployables)
           
static com.xebialabs.deployit.plugin.api.udm.Environment createEnvironment(com.xebialabs.deployit.plugin.api.udm.Container... containers)
           
static java.lang.String id(java.lang.String... names)
           
static com.xebialabs.deployit.plugin.jee.artifact.Ear newEar(java.lang.String name, java.lang.String version, java.lang.String classpathResource, java.io.File workingFolder)
           
static com.xebialabs.deployit.plugin.jee.artifact.Ear newEar(java.lang.String name, java.lang.String version, java.lang.String classpathResource, java.lang.String type, java.io.File workingFolder)
           
static com.xebialabs.deployit.plugin.jee.artifact.EjbJar newEjbJar(java.lang.String name, java.lang.String version, java.lang.String classpathResource, java.lang.String type, java.io.File workingFolder)
           
static
<T> T
newInstance(java.lang.Class<T> clazz)
           
static
<T> T
newInstance(java.lang.String type)
           
static com.xebialabs.deployit.plugin.jee.artifact.War newWar(java.lang.String name, java.lang.String version, java.lang.String classpathResource, java.lang.String type, java.io.File workingFolder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestUtils

public TestUtils()
Method Detail

newInstance

public static <T> T newInstance(java.lang.String type)

newInstance

public static <T> T newInstance(java.lang.Class<T> clazz)

id

public static java.lang.String id(java.lang.String... names)

createDeploymentPackage

public static com.xebialabs.deployit.plugin.api.udm.DeploymentPackage createDeploymentPackage(com.xebialabs.deployit.plugin.api.udm.Deployable... deployables)

createDeploymentPackage

public static com.xebialabs.deployit.plugin.api.udm.DeploymentPackage createDeploymentPackage(java.lang.String version,
                                                                                              com.xebialabs.deployit.plugin.api.udm.Deployable... deployables)

createEnvironment

public static com.xebialabs.deployit.plugin.api.udm.Environment createEnvironment(com.xebialabs.deployit.plugin.api.udm.Container... containers)

createDeployedApplication

public static com.xebialabs.deployit.plugin.api.udm.DeployedApplication createDeployedApplication(com.xebialabs.deployit.plugin.api.udm.DeploymentPackage pkg,
                                                                                                  com.xebialabs.deployit.plugin.api.udm.Environment env)

newEar

public static com.xebialabs.deployit.plugin.jee.artifact.Ear newEar(java.lang.String name,
                                                                    java.lang.String version,
                                                                    java.lang.String classpathResource,
                                                                    java.io.File workingFolder)
                                                             throws java.io.IOException
Throws:
java.io.IOException

newEar

public static com.xebialabs.deployit.plugin.jee.artifact.Ear newEar(java.lang.String name,
                                                                    java.lang.String version,
                                                                    java.lang.String classpathResource,
                                                                    java.lang.String type,
                                                                    java.io.File workingFolder)
                                                             throws java.io.IOException
Throws:
java.io.IOException

createArtifact

public static <T extends com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact> T createArtifact(java.lang.String name,
                                                                                                         java.lang.String version,
                                                                                                         java.lang.String classpathResource,
                                                                                                         java.lang.String type,
                                                                                                         java.io.File workingFolder)
                                                                                              throws java.io.IOException
Throws:
java.io.IOException

createArtifactWithoutCopy

public static <T extends com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact> T createArtifactWithoutCopy(java.lang.String name,
                                                                                                                    java.lang.String version,
                                                                                                                    java.lang.String classpathResource,
                                                                                                                    java.lang.String type,
                                                                                                                    java.io.File workingFolder)
                                                                                                         throws java.io.IOException,
                                                                                                                java.net.URISyntaxException
Throws:
java.io.IOException
java.net.URISyntaxException

newWar

public static com.xebialabs.deployit.plugin.jee.artifact.War newWar(java.lang.String name,
                                                                    java.lang.String version,
                                                                    java.lang.String classpathResource,
                                                                    java.lang.String type,
                                                                    java.io.File workingFolder)
                                                             throws java.io.IOException
Throws:
java.io.IOException

newEjbJar

public static com.xebialabs.deployit.plugin.jee.artifact.EjbJar newEjbJar(java.lang.String name,
                                                                          java.lang.String version,
                                                                          java.lang.String classpathResource,
                                                                          java.lang.String type,
                                                                          java.io.File workingFolder)
                                                                   throws java.io.IOException
Throws:
java.io.IOException