Author: dims Date: Fri Mar 7 21:13:48 2008 New Revision: 634900 URL: http://svn.apache.org/viewvc?rev=634900&view=rev Log: set up the failing test for AXIS2-2494. just uncomment it pom.xml to enable the test and recreate the issue
Modified: webservices/axis2/trunk/java/modules/jaxws-integration/pom.xml webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/StringListTests.java Modified: webservices/axis2/trunk/java/modules/jaxws-integration/pom.xml URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/pom.xml?rev=634900&r1=634899&r2=634900&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/pom.xml (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/pom.xml Fri Mar 7 21:13:48 2008 @@ -1085,7 +1085,20 @@ /> <delete dir="target/test-classes/servicejars/BareDocLitMinService"/> - <copy toDir="target/test-classes/"> + <copy toDir="target/test-classes/servicejars/StringListService/"> + <fileset dir="target/test-classes"> + <include name="org/apache/axis2/jaxws/stringlist/**"/> + </fileset> + <fileset dir="test/org/apache/axis2/jaxws/stringlist/"> + <include name="META-INF/**"/> + </fileset> + </copy> + <zip destfile="target/test-classes/servicejars/StringListService.jar" + basedir="${pom.basedir}/target/test-classes/servicejars/StringListService" + /> + <delete dir="target/test-classes/servicejars/StringListService"/> + + <copy toDir="target/test-classes/"> <fileset dir="test-resources/"> <include name="**/*.properties"/> <include name="**/axis2.xml"/> Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/StringListTests.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/StringListTests.java?rev=634900&r1=634899&r2=634900&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/StringListTests.java (original) +++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/StringListTests.java Fri Mar 7 21:13:48 2008 @@ -25,8 +25,11 @@ import org.apache.axis2.jaxws.stringlist.sei.StringListPortType; import org.apache.axis2.jaxws.stringlist.sei.StringListService; +import javax.xml.ws.BindingProvider; + public class StringListTests extends AbstractTestCase { + String axisEndpoint = "http://localhost:6060/axis2/services/StringListPortTypeImpl.StringListPortType"; public static Test suite() { return getTestSetup(new TestSuite(StringListTests.class)); @@ -37,6 +40,8 @@ TestLogger.logger.debug("test: " + getName()); StringListService sls = new StringListService(); StringListPortType portType =sls.getStringListPort(); + BindingProvider p = (BindingProvider)portType; + p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint); String[] retString = portType.stringList(new String[]{"String1","String2","String3"}); assertNotNull(retString); assertTrue(retString.length == 3); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]