You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by am...@apache.org on 2009/06/11 16:24:31 UTC
svn commit: r783793 -
/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java
Author: amilas
Date: Thu Jun 11 14:24:30 2009
New Revision: 783793
URL: http://svn.apache.org/viewvc?rev=783793&view=rev
Log:
fixed the test case according to the usage of converterutil class
Modified:
webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java
Modified: webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java?rev=783793&r1=783792&r2=783793&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java (original)
+++ webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/rpc/RPCCallTest.java Thu Jun 11 14:24:30 2009
@@ -26,6 +26,7 @@
import org.apache.axiom.om.util.StAXUtils;
import org.apache.axis2.AxisFault;
import org.apache.axis2.databinding.utils.BeanUtil;
+import org.apache.axis2.databinding.utils.ConverterUtil;
import org.apache.axis2.engine.DefaultObjectSupplier;
import org.apache.axis2.integration.RPCLocalTestCase;
import org.apache.axis2.rpc.client.RPCServiceClient;
@@ -316,14 +317,13 @@
}
public void testCalender() throws AxisFault {
- zulu.setTimeZone(TimeZone.getTimeZone("GMT"));
RPCServiceClient sender = getRPCClient("EchoXMLService", "echoCalander");
ArrayList args = new ArrayList();
- Date date = Calendar.getInstance().getTime();
- args.add(zulu.format(date));
+ Calendar calendar = Calendar.getInstance();
+ args.add(ConverterUtil.convertToString(calendar));
OMElement response = sender.invokeBlocking(new QName("http://rpc.axis2.apache.org", "echoCalander", "req"), args.toArray());
- assertEquals(response.getFirstElement().getText(), zulu.format(date));
+ assertEquals(response.getFirstElement().getText(), ConverterUtil.convertToString(calendar));
}