com.xebialabs.deployit.test.support
Class DeployedItestBase

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

public abstract class DeployedItestBase
extends java.lang.Object

See Also:
https://intranet.xebia.com/confluence/display/Labs/Deployed Itesting with xml

Field Summary
protected  com.xebialabs.deployit.plugin.api.udm.Container container
           
protected  DeployedItestChangeSet deployedChangeSet
           
 org.junit.rules.TemporaryFolder folder
           
protected  org.slf4j.Logger logger
           
protected  ItestTopology topology
           
 
Constructor Summary
DeployedItestBase(java.lang.String description, java.io.File deployedChangeSetXmlFile, ItestTopology topology, com.xebialabs.deployit.plugin.api.udm.Container container)
           
 
Method Summary
protected  void assertDeployedsDoNotExist(java.util.List<com.xebialabs.deployit.plugin.api.udm.Deployed> deployeds)
           
protected  void assertDeployedsWereCreatedCorrectly(java.util.List<com.xebialabs.deployit.plugin.api.udm.Deployed> expectedDeployeds)
           
protected  void assertDeployedWasCreatedCorrectly(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem expectedDeployed, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem actualDeployed)
           
 void clearInspectionContext()
           
protected  void createDeployeds(java.util.List<com.xebialabs.deployit.plugin.api.udm.Deployed> deployeds)
           
protected  void destroyDeployeds(java.util.List<com.xebialabs.deployit.plugin.api.udm.Deployed> deployeds)
           
protected  com.xebialabs.deployit.plugin.api.udm.ConfigurationItem getCiToPerformInspectionOn(java.util.List<com.xebialabs.deployit.plugin.api.reflect.Type> typesToDiscover)
           
static java.util.List<java.lang.Object[]> getTargets()
           
protected  java.util.List<com.xebialabs.deployit.plugin.api.udm.Deployed> inspectDeployeds(java.util.List<com.xebialabs.deployit.plugin.api.udm.Deployed> deployeds)
           
protected  void modifyDeployeds(DeployedItestChangeSet deployedChangeSet)
           
 void prepareDeployedChangeSet()
           
static void setup()
           
protected  boolean shouldCheckDeployedsCreatedCorrectly()
           
protected  boolean shouldCheckDeployedsDoNotExistAfterDelete()
           
protected  boolean shouldCheckDeployedsDoNotExistBeforeCreating()
           
protected  boolean shouldCheckDeployedsModifiedCorrectly()
           
 void shouldCreateAndDestroyDeployed()
           
protected  boolean shouldCreateDeployed()
           
protected  boolean shouldDestroyDeployeds()
           
protected  boolean shouldModifyDeployeds()
           
 void takeCareOfVagrantImages()
           
static void tearDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

folder

public org.junit.rules.TemporaryFolder folder

topology

protected ItestTopology topology

container

protected com.xebialabs.deployit.plugin.api.udm.Container container

deployedChangeSet

protected DeployedItestChangeSet deployedChangeSet

logger

protected final org.slf4j.Logger logger
Constructor Detail

DeployedItestBase

public DeployedItestBase(java.lang.String description,
                         java.io.File deployedChangeSetXmlFile,
                         ItestTopology topology,
                         com.xebialabs.deployit.plugin.api.udm.Container container)
Method Detail

getTargets

public static java.util.List<java.lang.Object[]> getTargets()
                                                     throws java.lang.Exception
Throws:
java.lang.Exception

takeCareOfVagrantImages

public void takeCareOfVagrantImages()

prepareDeployedChangeSet

public void prepareDeployedChangeSet()
                              throws org.jdom2.JDOMException,
                                     java.io.IOException
Throws:
org.jdom2.JDOMException
java.io.IOException

clearInspectionContext

public void clearInspectionContext()

setup

public static void setup()

tearDown

public static void tearDown()

shouldCreateAndDestroyDeployed

public void shouldCreateAndDestroyDeployed()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

createDeployeds

protected void createDeployeds(java.util.List<com.xebialabs.deployit.plugin.api.udm.Deployed> deployeds)

modifyDeployeds

protected void modifyDeployeds(DeployedItestChangeSet deployedChangeSet)

destroyDeployeds

protected void destroyDeployeds(java.util.List<com.xebialabs.deployit.plugin.api.udm.Deployed> deployeds)

assertDeployedsDoNotExist

protected void assertDeployedsDoNotExist(java.util.List<com.xebialabs.deployit.plugin.api.udm.Deployed> deployeds)

assertDeployedsWereCreatedCorrectly

protected void assertDeployedsWereCreatedCorrectly(java.util.List<com.xebialabs.deployit.plugin.api.udm.Deployed> expectedDeployeds)

assertDeployedWasCreatedCorrectly

protected void assertDeployedWasCreatedCorrectly(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem expectedDeployed,
                                                 com.xebialabs.deployit.plugin.api.udm.ConfigurationItem actualDeployed)

inspectDeployeds

protected java.util.List<com.xebialabs.deployit.plugin.api.udm.Deployed> inspectDeployeds(java.util.List<com.xebialabs.deployit.plugin.api.udm.Deployed> deployeds)

shouldCheckDeployedsDoNotExistBeforeCreating

protected boolean shouldCheckDeployedsDoNotExistBeforeCreating()

shouldCreateDeployed

protected boolean shouldCreateDeployed()

shouldCheckDeployedsCreatedCorrectly

protected boolean shouldCheckDeployedsCreatedCorrectly()

shouldCheckDeployedsModifiedCorrectly

protected boolean shouldCheckDeployedsModifiedCorrectly()

shouldModifyDeployeds

protected boolean shouldModifyDeployeds()

shouldDestroyDeployeds

protected boolean shouldDestroyDeployeds()

shouldCheckDeployedsDoNotExistAfterDelete

protected boolean shouldCheckDeployedsDoNotExistAfterDelete()

getCiToPerformInspectionOn

protected com.xebialabs.deployit.plugin.api.udm.ConfigurationItem getCiToPerformInspectionOn(java.util.List<com.xebialabs.deployit.plugin.api.reflect.Type> typesToDiscover)