Author: isurues Date: Thu Jan 20 07:45:09 2011 New Revision: 1061146 URL: http://svn.apache.org/viewvc?rev=1061146&view=rev Log: adding the test case for https://issues.apache.org/jira/browse/AXIS2-4754 into the build
Modified: axis/axis2/java/core/trunk/modules/jaxws-integration/pom.xml axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/CustomHTTPHeaderTests.java axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersPortTypeImpl.java Modified: axis/axis2/java/core/trunk/modules/jaxws-integration/pom.xml URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws-integration/pom.xml?rev=1061146&r1=1061145&r2=1061146&view=diff ============================================================================== --- axis/axis2/java/core/trunk/modules/jaxws-integration/pom.xml (original) +++ axis/axis2/java/core/trunk/modules/jaxws-integration/pom.xml Thu Jan 20 07:45:09 2011 @@ -1326,7 +1326,7 @@ <include>**/SoapMessageProviderTests.java</include> <include>**/StringProviderTests.java</include> <include>**/OMProviderTests.java</include> - + <include>**/CustomHTTPHeaderTests.java</include> </includes> <systemProperties> Modified: axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/CustomHTTPHeaderTests.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/CustomHTTPHeaderTests.java?rev=1061146&r1=1061145&r2=1061146&view=diff ============================================================================== --- axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/CustomHTTPHeaderTests.java (original) +++ axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/client/CustomHTTPHeaderTests.java Thu Jan 20 07:45:09 2011 @@ -20,6 +20,7 @@ package org.apache.axis2.jaxws.client; import java.util.Collections; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -45,7 +46,7 @@ public class CustomHTTPHeaderTests exten public void testPort() throws Exception { Map<String, List<String>> headers = new HashMap<String, List<String>>(); headers.put("MY_HEADER_1", Collections.singletonList("hello")); - // headers.put("MY_HEADER_2", Arrays.asList("value1", "value2")); + headers.put("MY_HEADER_2", Arrays.asList("value1", "value2")); AddNumbersService service = new AddNumbersService(); AddNumbersPortType port = service.getAddNumbersPort(); Modified: axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersPortTypeImpl.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersPortTypeImpl.java?rev=1061146&r1=1061145&r2=1061146&view=diff ============================================================================== --- axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersPortTypeImpl.java (original) +++ axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/addnumbers/AddNumbersPortTypeImpl.java Thu Jan 20 07:45:09 2011 @@ -68,18 +68,16 @@ public class AddNumbersPortTypeImpl impl if (!values.contains("hello")) { throw new RuntimeException("MY_HEADER_1 HTTP header does not contain expected value: " + values); } - - /* + // test MY_HEADER_2 values = (List<String>) headers.get("MY_HEADER_2"); if (values == null || headers.isEmpty()) { throw new RuntimeException("No values for MY_HEADER_2 HTTP header"); } - if (!values.contains("values1") && !values.contains("values2")) { + if (!values.contains("value1") && !values.contains("value2")) { throw new RuntimeException("MY_HEADER_2 HTTP header does not contain expected values: " + values); } - */ - } + } } /* (non-Javadoc)