Author: midon
Date: Thu Oct 2 14:03:18 2008
New Revision: 701244
URL: http://svn.apache.org/viewvc?rev=701244&view=rev
Log:
Relax a constraint: a HTTP response header may be empty or missing even if a
part is bound to it
Modified:
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestHttpBindingExt_GET/http-binding-ext-GET.bpel
Modified:
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java
URL:
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java?rev=701244&r1=701243&r2=701244&view=diff
==============================================================================
---
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java
(original)
+++
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java
Thu Oct 2 14:03:18 2008
@@ -97,9 +97,9 @@
server.deployProcess(bundleName);
try {
String response =
server.sendRequestFile("http://localhost:8080/processes/helloWorld",
bundleName, "testRequest.soap");
- System.out.println(response);
- if (log.isDebugEnabled()) log.debug(response);
- assertTrue("Test failed. See xml response for details",
response.indexOf("What a success!") >= 0);
+ System.out.println("Test Response Received: "+response);
+ if (log.isDebugEnabled()) log.debug("Test Response Received:
"+response);
+ assertTrue("Test failed. Response is:"+response,
response.indexOf("What a success!") >= 0);
} finally {
server.undeployProcess(bundleName);
}
Modified:
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestHttpBindingExt_GET/http-binding-ext-GET.bpel
URL:
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestHttpBindingExt_GET/http-binding-ext-GET.bpel?rev=701244&r1=701243&r2=701244&view=diff
==============================================================================
---
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestHttpBindingExt_GET/http-binding-ext-GET.bpel
(original)
+++
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/resources/TestHttpBindingExt_GET/http-binding-ext-GET.bpel
Thu Oct 2 14:03:18 2008
@@ -310,23 +310,9 @@
</scope>
<!-- ############################################### -->
- <!-- 200_missing_part_in_header - failure expected -->
+ <!-- 200_missing_part_in_header - should pass, missing or empty header
are allowed -->
<!-- ############################################### -->
<scope>
- <ext:failureHandling>
- <ext:faultOnFailure>true</ext:faultOnFailure>
- </ext:failureHandling>
- <faultHandlers>
- <catch faultName="ext:activityFailure">
- <!-- expected result-->
- <!--
- Warning #1!! At this point what we know for sure is that a
failure occured
- but we don't know which failure exactly.
- We would like to test if the the failure is really the one
we triggered on purpose and not a TimeoutFailure for instance.
- -->
- <empty/>
- </catch>
- </faultHandlers>
<sequence>
<assign>
<copy>
@@ -336,15 +322,7 @@
</assign>
<invoke partnerLink="blogPartnerLink"
portType="dummy:BlogPortType"
operation="doGET" inputVariable="idMsg"
outputVariable="articleMsg"/>
- <assign>
- <copy>
- <from>'200_missing_part_in_header: A failure should
have been thrown'</from>
- <to>$outputVar.TestPart</to>
- </copy>
- </assign>
- <reply name="end" partnerLink="helloPartnerLink"
portType="test:HelloPortType"
- operation="hello" variable="outputVar"/>
- </sequence>
+ </sequence>
</scope>
<!-- ############################################### -->