org.jboss.wise.core.test
Class WiseTest

java.lang.Object
  extended by org.jboss.wise.core.test.WiseTest

public class WiseTest
extends java.lang.Object

Wise test base class. Subclass can use the methods in this class to deploy and undeploy a web service war in JBossAS

Author:
ema@redhat.com

Constructor Summary
WiseTest()
           
 
Method Summary
 void deployWS(java.net.URL url)
          Deploy the webservice war in JBoss server
 java.lang.String getServerHostAndPort()
          Get the jboss webservice server side hostname and port
 java.lang.String getServerPort()
          Get the web service server port
 java.net.URL getWarUrl(java.lang.String warName)
          Get the URL path for a given webservice war.
 void undeployWS(java.net.URL url)
          Undeploy a webservice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WiseTest

public WiseTest()
Method Detail

deployWS

public void deployWS(java.net.URL url)
              throws java.lang.Exception
Deploy the webservice war in JBoss server

Parameters:
url - url for webservice war
Throws:
java.lang.Exception - if the deployment is failed

undeployWS

public void undeployWS(java.net.URL url)
                throws java.lang.Exception
Undeploy a webservice

Parameters:
url - url of webservice war
Throws:
java.lang.Exception - if undeployment is failed

getWarUrl

public java.net.URL getWarUrl(java.lang.String warName)
Get the URL path for a given webservice war. It will find this war file under ${baseDir}/build/webservice-wars

Parameters:
warName - the webservice war name
Returns:
webservice war url

getServerHostAndPort

public java.lang.String getServerHostAndPort()
Get the jboss webservice server side hostname and port

Returns:
http://server-hostname:port

getServerPort

public java.lang.String getServerPort()
Get the web service server port

Returns:
webservice server configured port