[Dev] Connector Integration Test Issue!

2014-06-30 Thread Asanki Fernando
Hi All, When I tried to compare the apiRestResponse and the esbRestResponse, it gives me the same body, both the responses are perfectly equal, but when I tried to compare some specific json object using 'assertEquals' it gives me an error. JsonObject is not found. But it's there in the body.

Re: [Dev] Connector Integration Test Issue!

2014-06-30 Thread Krishantha Samaraweera
Can you paste the problematic code here. Thanks, Krishantha. On Mon, Jun 30, 2014 at 12:03 PM, Asanki Fernando iasankiferna...@gmail.com wrote: Hi All, When I tried to compare the apiRestResponse and the esbRestResponse, it gives me the same body, both the responses are perfectly equal,

Re: [Dev] Connector Integration Test Issue!

2014-06-30 Thread Ramindu Deshapriya
/Dev-Connector-Integration-Test-Issue-tp98709p98715.html To start a new topic under WSO2 Development, email ml-node+s10903n3...@n7.nabble.com To unsubscribe from WSO2 Development, click here http://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3code

Re: [Dev] Connector Integration Test Issue!

2014-06-30 Thread Asanki Fernando
Hi, Thanks I got it fixed using the code, Assert.assertEquals(esbRestResponse.getBody().getJSONObject(response).getJSONObject(checkin).get(id), apiRestResponse.getBody().getJSONObject(response).getJSONObject(checkin).get(id)); Best Regards, Asanki. ___