You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mi...@apache.org on 2008/10/02 23:06:41 UTC
svn commit: r701246 - in /ode/trunk/axis2-war/src/test:
java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java
resources/TestHttpBindingExt_GET/http-binding-ext-GET.bpel
Author: midon
Date: Thu Oct 2 14:06:41 2008
New Revision: 701246
URL: http://svn.apache.org/viewvc?rev=701246&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/trunk/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java
ode/trunk/axis2-war/src/test/resources/TestHttpBindingExt_GET/http-binding-ext-GET.bpel
Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java?rev=701246&r1=701245&r2=701246&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java Thu Oct 2 14:06:41 2008
@@ -99,9 +99,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/trunk/axis2-war/src/test/resources/TestHttpBindingExt_GET/http-binding-ext-GET.bpel
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/resources/TestHttpBindingExt_GET/http-binding-ext-GET.bpel?rev=701246&r1=701245&r2=701246&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/resources/TestHttpBindingExt_GET/http-binding-ext-GET.bpel (original)
+++ ode/trunk/axis2-war/src/test/resources/TestHttpBindingExt_GET/http-binding-ext-GET.bpel Thu Oct 2 14:06:41 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,14 +322,6 @@
</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>
</scope>