@@ -171,7 +171,7 @@ public void testShouldUseAMapToRepresentComplexObjects() throws Exception {
171
171
@ Test
172
172
public void testShouldConvertAResponseWithAnElementInIt () throws Exception {
173
173
String json =
174
- "{\" value\" :{\" value\" :\" \" ,\" text\" :\" \" ,\" selected\" :false,\" enabled\" :true,\" id\" :\" three\" },\" context\" :\" con\" ,\" sessionId\" :\" sess\" , \" error \" :false }" ;
174
+ "{\" value\" :{\" value\" :\" \" ,\" text\" :\" \" ,\" selected\" :false,\" enabled\" :true,\" id\" :\" three\" },\" context\" :\" con\" ,\" sessionId\" :\" sess\" }" ;
175
175
Response converted = new JsonToBeanConverter ().convert (Response .class , json );
176
176
177
177
Map <?,?> value = (Map <?,?>) converted .getValue ();
@@ -188,7 +188,7 @@ public void testConvertABlankStringAsAStringEvenWhenAskedToReturnAnObject() thro
188
188
@ Test
189
189
public void testShouldBeAbleToCopeWithStringsThatLookLikeBooleans () throws Exception {
190
190
String json =
191
- "{\" value\" :\" false\" ,\" context\" :\" foo\" ,\" sessionId\" :\" 1210083863107\" , \" error \" :false }" ;
191
+ "{\" value\" :\" false\" ,\" context\" :\" foo\" ,\" sessionId\" :\" 1210083863107\" }" ;
192
192
193
193
try {
194
194
new JsonToBeanConverter ().convert (Response .class , json );
@@ -201,7 +201,7 @@ public void testShouldBeAbleToCopeWithStringsThatLookLikeBooleans() throws Excep
201
201
@ Test
202
202
public void testShouldBeAbleToSetAnObjectToABoolean () throws Exception {
203
203
String json =
204
- "{\" value\" :true,\" context\" :\" foo\" ,\" sessionId\" :\" 1210084658750\" , \" error \" :false }" ;
204
+ "{\" value\" :true,\" context\" :\" foo\" ,\" sessionId\" :\" 1210084658750\" }" ;
205
205
206
206
Response response = new JsonToBeanConverter ().convert (Response .class , json );
207
207
0 commit comments