tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r1527434 - /tuscany/sca-java-2.x/branches/2.0/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCDataTypeTestCase.java
Date Mon, 30 Sep 2013 03:10:33 GMT
Author: lresende
Date: Mon Sep 30 03:10:33 2013
New Revision: 1527434

URL: http://svn.apache.org/r1527434
Log:
Fix JSON-RPC test case which was checking wrong data type

Modified:
    tuscany/sca-java-2.x/branches/2.0/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCDataTypeTestCase.java

Modified: tuscany/sca-java-2.x/branches/2.0/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCDataTypeTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/branches/2.0/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCDataTypeTestCase.java?rev=1527434&r1=1527433&r2=1527434&view=diff
==============================================================================
--- tuscany/sca-java-2.x/branches/2.0/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCDataTypeTestCase.java
(original)
+++ tuscany/sca-java-2.x/branches/2.0/modules/binding-jsonrpc-runtime/src/test/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCDataTypeTestCase.java
Mon Sep 30 03:10:33 2013
@@ -161,7 +161,7 @@ public class JSONRPCDataTypeTestCase {
 
         JSONObject jsonResp = new JSONObject(response.getText());
 
-        Assert.assertEquals(1, jsonResp.getJSONArray("result").getInt(0));
+        Assert.assertEquals("1", jsonResp.getJSONArray("result").getString(0));
     }	
 
 



Mime
View raw message