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/06/27 05:18:16 UTC
svn commit: r672106 -
/ode/branches/APACHE_ODE_1.1/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java
Author: midon
Date: Thu Jun 26 20:18:16 2008
New Revision: 672106
URL: http://svn.apache.org/viewvc?rev=672106&view=rev
Log:
more output to ease debugging
Modified:
ode/branches/APACHE_ODE_1.1/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java
Modified: ode/branches/APACHE_ODE_1.1/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java?rev=672106&r1=672105&r2=672106&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.1/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java (original)
+++ ode/branches/APACHE_ODE_1.1/axis2-war/src/test/java/org/apache/ode/axis2/httpbinding/HttpBindingTest.java Thu Jun 26 20:18:16 2008
@@ -1,6 +1,8 @@
package org.apache.ode.axis2.httpbinding;
import org.apache.ode.axis2.Axis2TestBase;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import java.util.concurrent.CountDownLatch;
@@ -18,6 +20,9 @@
* @author <a href="mailto:midon@intalio.com">Alexis Midon</a>
*/
public class HttpBindingTest extends Axis2TestBase {
+
+ private static final Log log = LogFactory.getLog(HttpBindingTest.class);
+
protected ArithmeticsJettyWrapper jettyWrapper;
CountDownLatch latch;
@@ -52,9 +57,11 @@
try {
String response = server.sendRequestFile("http://localhost:8080/processes/helloWorld",
bundleName, "testRequest.soap");
+ if(log.isDebugEnabled()) log.debug(response);
int valueInSoapRequest = 100;
int n = 5 + valueInSoapRequest;
- assertTrue(response.indexOf(String.valueOf(n * (n + 1) / 2)) >= 0);
+ String expectedResult = String.valueOf(n * (n + 1) / 2);
+ assertTrue("Expected Result: "+expectedResult+". Answer was "+response, response.indexOf(expectedResult) >= 0);
} finally {
server.undeployProcess(bundleName);
}