org.jbpm.test.enterprise
Class IntegrationTestHelper

java.lang.Object
  extended by org.jbpm.test.enterprise.IntegrationTestHelper

public class IntegrationTestHelper
extends java.lang.Object

An integration test helper that deals with test deployment/undeployment, etc.

Since:
14-Oct-2004
Author:
Thomas.Diesler@jboss.org

Field Summary
protected static java.lang.String SYSPROP_TEST_ARCHIVE_DIRECTORY
           
protected static java.lang.String SYSPROP_TEST_RESOURCES_DIRECTORY
           
protected static java.lang.String testArchiveDir
           
protected static java.lang.String testResourcesDir
           
 
Constructor Summary
IntegrationTestHelper()
           
 
Method Summary
 void deploy(java.lang.String archive)
           
 void deploy(java.lang.String[] archives)
           
 void deploy(java.net.URL archive)
           
 java.io.File getResourceFile(java.lang.String resource)
          Try to discover the File for the test resource
 java.net.URL getResourceURL(java.lang.String resource)
          Try to discover the URL for the test resource
 javax.management.MBeanServerConnection getServer()
           
static java.lang.String getTestArchiveDir()
           
static java.io.File getTestArchiveFile(java.lang.String archive)
          Try to discover the File for the deployment archive
static java.net.URL getTestArchiveURL(java.lang.String archive)
          Try to discover the URL for the deployment archive
 java.lang.String getTestResourcesDir()
           
 boolean isTargetJBoss422()
           
 boolean isTargetJBoss423()
           
 boolean isTargetJBoss500()
           
 void undeploy(java.lang.String archive)
           
 void undeploy(java.lang.String[] archives)
           
 void undeploy(java.net.URL archive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSPROP_TEST_RESOURCES_DIRECTORY

protected static final java.lang.String SYSPROP_TEST_RESOURCES_DIRECTORY
See Also:
Constant Field Values

SYSPROP_TEST_ARCHIVE_DIRECTORY

protected static final java.lang.String SYSPROP_TEST_ARCHIVE_DIRECTORY
See Also:
Constant Field Values

testResourcesDir

protected static java.lang.String testResourcesDir

testArchiveDir

protected static java.lang.String testArchiveDir
Constructor Detail

IntegrationTestHelper

public IntegrationTestHelper()
Method Detail

deploy

public void deploy(java.lang.String[] archives)
            throws java.lang.Exception
Throws:
java.lang.Exception

deploy

public void deploy(java.lang.String archive)
            throws java.lang.Exception
Throws:
java.lang.Exception

deploy

public void deploy(java.net.URL archive)
            throws java.lang.Exception
Throws:
java.lang.Exception

undeploy

public void undeploy(java.lang.String[] archives)
              throws java.lang.Exception
Throws:
java.lang.Exception

undeploy

public void undeploy(java.lang.String archive)
              throws java.lang.Exception
Throws:
java.lang.Exception

undeploy

public void undeploy(java.net.URL archive)
              throws java.lang.Exception
Throws:
java.lang.Exception

isTargetJBoss500

public boolean isTargetJBoss500()

isTargetJBoss423

public boolean isTargetJBoss423()

isTargetJBoss422

public boolean isTargetJBoss422()

getServer

public javax.management.MBeanServerConnection getServer()

getResourceURL

public java.net.URL getResourceURL(java.lang.String resource)
Try to discover the URL for the test resource


getResourceFile

public java.io.File getResourceFile(java.lang.String resource)
Try to discover the File for the test resource


getTestResourcesDir

public java.lang.String getTestResourcesDir()

getTestArchiveURL

public static java.net.URL getTestArchiveURL(java.lang.String archive)
Try to discover the URL for the deployment archive


getTestArchiveFile

public static java.io.File getTestArchiveFile(java.lang.String archive)
Try to discover the File for the deployment archive


getTestArchiveDir

public static java.lang.String getTestArchiveDir()


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.