@@ -1041,7 +1041,7 @@ public void jsonObjectNonAndWrongValues() {
10411041 fail ("Expected an exception" );
10421042 } catch (JSONException e ) {
10431043 assertEquals ("Expecting an exception message" ,
1044- "JSONObject[\" trueKey\" ] not a string." ,
1044+ "JSONObject[\" trueKey\" ] is not a string." ,
10451045 e .getMessage ());
10461046 }
10471047 try {
@@ -1057,7 +1057,7 @@ public void jsonObjectNonAndWrongValues() {
10571057 fail ("Expected an exception" );
10581058 } catch (JSONException e ) {
10591059 assertEquals ("Expecting an exception message" ,
1060- "JSONObject[\" stringKey\" ] is not a number ." ,
1060+ "JSONObject[\" stringKey\" ] is not a double ." ,
10611061 e .getMessage ());
10621062 }
10631063 try {
@@ -1073,7 +1073,7 @@ public void jsonObjectNonAndWrongValues() {
10731073 fail ("Expected an exception" );
10741074 } catch (JSONException e ) {
10751075 assertEquals ("Expecting an exception message" ,
1076- "JSONObject[\" stringKey\" ] is not a number ." ,
1076+ "JSONObject[\" stringKey\" ] is not a float ." ,
10771077 e .getMessage ());
10781078 }
10791079 try {
@@ -1089,7 +1089,7 @@ public void jsonObjectNonAndWrongValues() {
10891089 fail ("Expected an exception" );
10901090 } catch (JSONException e ) {
10911091 assertEquals ("Expecting an exception message" ,
1092- "JSONObject[\" stringKey\" ] is not a number ." ,
1092+ "JSONObject[\" stringKey\" ] is not a int ." ,
10931093 e .getMessage ());
10941094 }
10951095 try {
@@ -1105,7 +1105,7 @@ public void jsonObjectNonAndWrongValues() {
11051105 fail ("Expected an exception" );
11061106 } catch (JSONException e ) {
11071107 assertEquals ("Expecting an exception message" ,
1108- "JSONObject[\" stringKey\" ] is not a number ." ,
1108+ "JSONObject[\" stringKey\" ] is not a long ." ,
11091109 e .getMessage ());
11101110 }
11111111 try {
@@ -2087,7 +2087,7 @@ public void jsonObjectParsingErrors() {
20872087 fail ("Expected an exception" );
20882088 } catch (JSONException e ) {
20892089 assertEquals ("Expecting an exception message" ,
2090- "JSONObject[myKey] is not a JSONArray." ,
2090+ "JSONObject[\" myKey\" ] is not a JSONArray (null) ." ,
20912091 e .getMessage ());
20922092 }
20932093 try {
0 commit comments