Author: thomas.diesler(a)jboss.com
Date: 2007-08-03 04:57:11 -0400 (Fri, 03 Aug 2007)
New Revision: 4138
Modified:
trunk/integration/sunri/ant-import/build-testsuite.xml
trunk/integration/xfire/ant-import/build-testsuite.xml
trunk/jbossws-core/ant-import-tests/build-testsuite.xml
trunk/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/addressrewrite/AddressRewriteTestCase.java
Log:
test client needs framework.jar
Modified: trunk/integration/sunri/ant-import/build-testsuite.xml
===================================================================
--- trunk/integration/sunri/ant-import/build-testsuite.xml 2007-08-03 08:46:08 UTC (rev
4137)
+++ trunk/integration/sunri/ant-import/build-testsuite.xml 2007-08-03 08:57:11 UTC (rev
4138)
@@ -48,6 +48,7 @@
</path>
<path id="tests.extra.classpath">
+ <pathelement
location="${int.sunri.dir}/thirdparty/jbossws-framework.jar"/>
<pathelement
location="${int.sunri.dir}/output/lib/jbossws-sunri-client.jar"/>
</path>
Modified: trunk/integration/xfire/ant-import/build-testsuite.xml
===================================================================
--- trunk/integration/xfire/ant-import/build-testsuite.xml 2007-08-03 08:46:08 UTC (rev
4137)
+++ trunk/integration/xfire/ant-import/build-testsuite.xml 2007-08-03 08:57:11 UTC (rev
4138)
@@ -45,6 +45,7 @@
</path>
<path id="tests.extra.classpath">
+ <pathelement
location="${int.xfire.dir}/thirdparty/jbossws-framework.jar"/>
</path>
</target>
Modified: trunk/jbossws-core/ant-import-tests/build-testsuite.xml
===================================================================
--- trunk/jbossws-core/ant-import-tests/build-testsuite.xml 2007-08-03 08:46:08 UTC (rev
4137)
+++ trunk/jbossws-core/ant-import-tests/build-testsuite.xml 2007-08-03 08:57:11 UTC (rev
4138)
@@ -41,6 +41,7 @@
</path>
<path id="tests.extra.classpath">
+ <pathelement
location="${core.dir}/thirdparty/jbossws-framework.jar"/>
<pathelement location="${core.dir}/thirdparty/qdox.jar"/>
<pathelement location="${core.dir}/thirdparty/xmlunit.jar"/>
</path>
Modified:
trunk/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/addressrewrite/AddressRewriteTestCase.java
===================================================================
---
trunk/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/addressrewrite/AddressRewriteTestCase.java 2007-08-03
08:46:08 UTC (rev 4137)
+++
trunk/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/addressrewrite/AddressRewriteTestCase.java 2007-08-03
08:57:11 UTC (rev 4138)
@@ -24,12 +24,14 @@
import java.net.URL;
import javax.management.Attribute;
+import javax.management.ObjectName;
import javax.xml.namespace.QName;
import javax.xml.rpc.Call;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
-import org.jboss.wsf.framework.management.DefaultServerConfigMBean;
+import org.jboss.wsf.common.ObjectNameFactory;
+import org.jboss.wsf.common.management.DefaultServerConfigMBean;
import org.jboss.wsf.test.JBossWSTest;
/**
@@ -40,6 +42,8 @@
*/
public class AddressRewriteTestCase extends JBossWSTest
{
+ private static final ObjectName SERVER_CONFIG_OBJECT_NAME =
ObjectNameFactory.create("jboss.ws:service=ServerConfig");
+
private static String NAMESPACE = "http://test.jboss.org/addressrewrite";
private String wsdlLocation;
private String wsdlLocationSec;
@@ -51,14 +55,14 @@
{
wsdlLocation = "http://" + getServerHost() +
":8080/jaxrpc-addressrewrite/ValidURL?wsdl";
wsdlLocationSec = "http://" + getServerHost() +
":8080/jaxrpc-addressrewrite-sec/ValidURL?wsdl";
- modifySOAPAddress =
(Boolean)getServer().getAttribute(DefaultServerConfigMBean.OBJECT_NAME,
"ModifySOAPAddress");
- webServiceHost =
(String)getServer().getAttribute(DefaultServerConfigMBean.OBJECT_NAME,
"WebServiceHost");
+ modifySOAPAddress = (Boolean)getServer().getAttribute(SERVER_CONFIG_OBJECT_NAME,
"ModifySOAPAddress");
+ webServiceHost = (String)getServer().getAttribute(SERVER_CONFIG_OBJECT_NAME,
"WebServiceHost");
}
public void tearDown() throws Exception
{
Attribute attr = new Attribute("ModifySOAPAddress", modifySOAPAddress);
- getServer().setAttribute(DefaultServerConfigMBean.OBJECT_NAME, attr);
+ getServer().setAttribute(SERVER_CONFIG_OBJECT_NAME, attr);
}
public void testRewrite() throws Exception
@@ -158,6 +162,6 @@
private void setModifySOAPAddress(Boolean value) throws Exception
{
Attribute attr = new Attribute("ModifySOAPAddress", value);
- getServer().setAttribute(DefaultServerConfigMBean.OBJECT_NAME, attr);
+ getServer().setAttribute(SERVER_CONFIG_OBJECT_NAME, attr);
}
}
\ No newline at end of file
Show replies by date