org.jboss.wsf.test
Class JBossWSTestHelper

java.lang.Object
  extended by org.jboss.wsf.test.JBossWSTestHelper

public class JBossWSTestHelper
extends java.lang.Object

A JBossWS test helper that deals with test deployment/undeployment, etc.

Author:
Thomas.Diesler@jboss.org, ropalka@redhat.com

Constructor Summary
JBossWSTestHelper()
           
 
Method Summary
 void deploy(java.lang.String archive)
          Deploy the given archive
 java.io.File getArchiveFile(java.lang.String archive)
          Try to discover the File for the deployment archive
 java.net.URL getArchiveURL(java.lang.String archive)
          Try to discover the URL for the deployment archive
 java.lang.String getIntegrationTarget()
           
 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
static javax.management.MBeanServerConnection getServer()
           
static java.lang.String getServerHost()
          Get the JBoss server host from system property "jboss.bind.address" This defaults to "localhost"
static java.lang.String getTestArchiveDir()
           
static java.lang.String getTestResourcesDir()
           
 boolean isIntegrationCXF()
           
 boolean isIntegrationMetro()
           
 boolean isIntegrationNative()
           
 boolean isTargetJBoss5()
          True, if -Djbossws.integration.target=jboss5x
 boolean isTargetJBoss50()
          True, if -Djbossws.integration.target=jboss50x
 boolean isTargetJBoss51()
          True, if -Djbossws.integration.target=jboss51x
 boolean isTargetJBoss6()
          True, if -Djbossws.integration.target=jboss6x
 boolean isTargetJBoss60()
          True, if -Djbossws.integration.target=jboss60x
 boolean isTargetJBoss61()
          True, if -Djbossws.integration.target=jboss61x
 void undeploy(java.lang.String archive)
          Undeploy the given archive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossWSTestHelper

public JBossWSTestHelper()
Method Detail

deploy

public void deploy(java.lang.String archive)
            throws java.lang.Exception
Deploy the given archive

Throws:
java.lang.Exception

undeploy

public void undeploy(java.lang.String archive)
              throws java.lang.Exception
Undeploy the given archive

Throws:
java.lang.Exception

isTargetJBoss5

public boolean isTargetJBoss5()
True, if -Djbossws.integration.target=jboss5x


isTargetJBoss50

public boolean isTargetJBoss50()
True, if -Djbossws.integration.target=jboss50x


isTargetJBoss51

public boolean isTargetJBoss51()
True, if -Djbossws.integration.target=jboss51x


isTargetJBoss6

public boolean isTargetJBoss6()
True, if -Djbossws.integration.target=jboss6x


isTargetJBoss60

public boolean isTargetJBoss60()
True, if -Djbossws.integration.target=jboss60x


isTargetJBoss61

public boolean isTargetJBoss61()
True, if -Djbossws.integration.target=jboss61x


isIntegrationNative

public boolean isIntegrationNative()

isIntegrationMetro

public boolean isIntegrationMetro()

isIntegrationCXF

public boolean isIntegrationCXF()

getServerHost

public static java.lang.String getServerHost()
Get the JBoss server host from system property "jboss.bind.address" This defaults to "localhost"


getServer

public static javax.management.MBeanServerConnection getServer()

getIntegrationTarget

public java.lang.String getIntegrationTarget()

getArchiveURL

public java.net.URL getArchiveURL(java.lang.String archive)
                           throws java.net.MalformedURLException
Try to discover the URL for the deployment archive

Throws:
java.net.MalformedURLException

getArchiveFile

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


getResourceURL

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

Throws:
java.net.MalformedURLException

getResourceFile

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


getTestArchiveDir

public static java.lang.String getTestArchiveDir()

getTestResourcesDir

public static java.lang.String getTestResourcesDir()


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