Package com.xebialabs.platform.test
Class TestUtils
java.lang.Object
com.xebialabs.platform.test.TestUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact>
TcreateArtifact(String name, String version, String classpathResource, String type, File workingFolder) static <T extends com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact>
TcreateArtifactWithoutCopy(String name, String version, String classpathResource, String type, File workingFolder) static com.xebialabs.deployit.plugin.api.udm.DeploymentPackagecreateDeploymentPackage(com.xebialabs.deployit.plugin.api.udm.Deployable... deployables) static com.xebialabs.deployit.plugin.api.udm.DeploymentPackagecreateDeploymentPackage(String version, com.xebialabs.deployit.plugin.api.udm.Deployable... deployables) static com.xebialabs.deployit.plugin.api.udm.EnvironmentcreateEnvironment(com.xebialabs.deployit.plugin.api.udm.Container... containers) static Stringstatic StringgetTitleFromHtmlPage(URL url) static Stringstatic <T> TnewInstance(com.xebialabs.deployit.plugin.api.reflect.Type type, String id) static <T> TnewInstance(Class<T> clazz) static <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
TnewInstance(Class<T> clazz, String id) Creates new CI instance and sets idstatic <T> TnewInstance(String type) static <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem>
TnewInstance(String type, String id) Creates new CI instance and sets idstatic StringreadResource(String resource) Returns resource content as a string
-
Constructor Details
-
TestUtils
public TestUtils()
-
-
Method Details
-
readResource
Returns resource content as a string- Throws:
IOException
-
newInstance
-
newInstance
-
newInstance
-
newInstance
public static <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> T newInstance(Class<T> clazz, String id) Creates new CI instance and sets id -
newInstance
public static <T extends com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> T newInstance(String type, String id) Creates new CI instance and sets id -
id
-
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(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) -
createArtifact
public static <T extends com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact> T createArtifact(String name, String version, String classpathResource, String type, File workingFolder) throws IOException - Throws:
IOException
-
createArtifactWithoutCopy
public static <T extends com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact> T createArtifactWithoutCopy(String name, String version, String classpathResource, String type, File workingFolder) throws URISyntaxException - Throws:
URISyntaxException
-
getTitleFromHtmlPage
- Throws:
IOException
-
getTitleFromHtmlPage
- Throws:
IOException
-