@@ -2202,7 +2202,7 @@ public void jsonObjectParseControlCharacterEOFAssertExceptionMessage(){
22022202 fail ("JSONException should be thrown" );
22032203 } catch (JSONException ex ) {
22042204 assertEquals ("Unterminated string. " + "Character with int code 0" +
2205- " is not allowed within a quoted string. at index 8 [character number 9 in line 1]" , ex .getMessage ());
2205+ " is not allowed within a quoted string. at 8 [character 9 line 1]" , ex .getMessage ());
22062206 }
22072207 }
22082208
@@ -2216,7 +2216,7 @@ public void jsonObjectParseControlCharacterNewLineAssertExceptionMessage(){
22162216 fail ("JSONException should be thrown" );
22172217 } catch (JSONException ex ) {
22182218 assertEquals ("Unterminated string. " + "Character with int code " + (int ) c +
2219- " is not allowed within a quoted string. at index 9 [character number 0 in line 2]" , ex .getMessage ());
2219+ " is not allowed within a quoted string. at 9 [character 0 line 2]" , ex .getMessage ());
22202220 }
22212221 }
22222222 }
@@ -2230,7 +2230,7 @@ public void jsonObjectParseUTF8EncodingAssertExceptionMessage(){
22302230 fail ("JSONException should be thrown" );
22312231 } catch (JSONException ex ) {
22322232 assertEquals ("Illegal escape. \\ u must be followed by a 4 digit hexadecimal number. " +
2233- "\\ 123x is not valid. at index 14 [character number 15 in line 1]" , ex .getMessage ());
2233+ "\\ 123x is not valid. at 14 [character 15 line 1]" , ex .getMessage ());
22342234 }
22352235 }
22362236
@@ -2243,7 +2243,7 @@ public void jsonObjectParseIllegalEscapeAssertExceptionMessage(){
22432243 fail ("JSONException should be thrown" );
22442244 } catch (JSONException ex ) {
22452245 assertEquals ("Illegal escape. Escape sequence " + c + " is not valid." +
2246- " at index 10 [character number 11 in line 1]" , ex .getMessage ());
2246+ " at 10 [character 11 line 1]" , ex .getMessage ());
22472247 }
22482248 }
22492249
@@ -2259,7 +2259,7 @@ public void jsonObjectParsingErrors() {
22592259 assertNull ("Expected an exception" ,new JSONObject (str ));
22602260 } catch (JSONException e ) {
22612261 assertEquals ("Expecting an exception message" ,
2262- "A JSONObject text must begin with '{' at index 1 [character number 2 in line 1]" ,
2262+ "A JSONObject text must begin with '{' at 1 [character 2 line 1]" ,
22632263 e .getMessage ());
22642264 }
22652265 try {
@@ -2268,7 +2268,7 @@ public void jsonObjectParsingErrors() {
22682268 assertNull ("Expected an exception" ,new JSONObject (str ));
22692269 } catch (JSONException e ) {
22702270 assertEquals ("Expecting an exception message" ,
2271- "A JSONObject text must end with '}' at index 1 [character number 2 in line 1]" ,
2271+ "A JSONObject text must end with '}' at 1 [character 2 line 1]" ,
22722272 e .getMessage ());
22732273 }
22742274 try {
@@ -2277,7 +2277,7 @@ public void jsonObjectParsingErrors() {
22772277 assertNull ("Expected an exception" ,new JSONObject (str ));
22782278 } catch (JSONException e ) {
22792279 assertEquals ("Expecting an exception message" ,
2280- "Expected a ':' after a key at index 10 [character number 11 in line 1]" ,
2280+ "Expected a ':' after a key at 10 [character 11 line 1]" ,
22812281 e .getMessage ());
22822282 }
22832283 try {
@@ -2286,7 +2286,7 @@ public void jsonObjectParsingErrors() {
22862286 assertNull ("Expected an exception" ,new JSONObject (str ));
22872287 } catch (JSONException e ) {
22882288 assertEquals ("Expecting an exception message" ,
2289- "Expected a ',' or '}' at index 15 [character number 16 in line 1]" ,
2289+ "Expected a ',' or '}' at 15 [character 16 line 1]" ,
22902290 e .getMessage ());
22912291 }
22922292 try {
@@ -2295,7 +2295,7 @@ public void jsonObjectParsingErrors() {
22952295 assertNull ("Expected an exception" ,new JSONObject (str ));
22962296 } catch (JSONException e ) {
22972297 assertEquals ("Expecting an exception message" ,
2298- "Missing value at index 1 [character number 2 in line 1]" ,
2298+ "Missing value at 1 [character 2 line 1]" ,
22992299 e .getMessage ());
23002300 }
23012301 try {
@@ -2304,7 +2304,7 @@ public void jsonObjectParsingErrors() {
23042304 assertNull ("Expected an exception" ,new JSONObject (str ));
23052305 } catch (JSONException e ) {
23062306 assertEquals ("Expecting an exception message" ,
2307- "Missing value at index 9 [character number 10 in line 1]" ,
2307+ "Missing value at 9 [character 10 line 1]" ,
23082308 e .getMessage ());
23092309 }
23102310 try {
@@ -2313,7 +2313,7 @@ public void jsonObjectParsingErrors() {
23132313 assertNull ("Expected an exception" ,new JSONObject (str ));
23142314 } catch (JSONException e ) {
23152315 assertEquals ("Expecting an exception message" ,
2316- "Expected a ':' after a key at index 5 [character number 6 in line 1]" ,
2316+ "Expected a ':' after a key at 5 [character 6 line 1]" ,
23172317 e .getMessage ());
23182318 }
23192319 try {
@@ -2322,7 +2322,7 @@ public void jsonObjectParsingErrors() {
23222322 assertNull ("Expected an exception" ,new JSONObject (str ));
23232323 } catch (JSONException e ) {
23242324 assertEquals ("Expecting an exception message" ,
2325- "Expected a ':' after a key at index 5 [character number 6 in line 1]" ,
2325+ "Expected a ':' after a key at 5 [character 6 line 1]" ,
23262326 e .getMessage ());
23272327 }
23282328 try {
@@ -2331,7 +2331,7 @@ public void jsonObjectParsingErrors() {
23312331 assertNull ("Expected an exception" ,new JSONObject (str ));
23322332 } catch (JSONException e ) {
23332333 assertEquals ("Expecting an exception message" ,
2334- "A JSONObject text must end with '}' at index 15 [character number 16 in line 1]" ,
2334+ "A JSONObject text must end with '}' at 15 [character 16 line 1]" ,
23352335 e .getMessage ());
23362336 }
23372337 try {
@@ -2412,7 +2412,7 @@ public void jsonObjectParsingErrors() {
24122412 fail ("Expected an exception" );
24132413 } catch (JSONException e ) {
24142414 assertEquals ("Expecting an expection message" ,
2415- "Duplicate key \" attr03\" at index 90 [character number 13 in line 5]" ,
2415+ "Duplicate key \" attr03\" at 90 [character 13 line 5]" ,
24162416 e .getMessage ());
24172417 }
24182418 try {
@@ -2431,7 +2431,7 @@ public void jsonObjectParsingErrors() {
24312431 fail ("Expected an exception" );
24322432 } catch (JSONException e ) {
24332433 assertEquals ("Expecting an expection message" ,
2434- "Duplicate key \" attr03\" at index 90 [character number 13 in line 5]" ,
2434+ "Duplicate key \" attr03\" at 90 [character 13 line 5]" ,
24352435 e .getMessage ());
24362436 }
24372437 try {
@@ -2452,7 +2452,7 @@ public void jsonObjectParsingErrors() {
24522452 fail ("Expected an exception" );
24532453 } catch (JSONException e ) {
24542454 assertEquals ("Expecting an expection message" ,
2455- "Duplicate key \" attr03\" at index 90 [character number 13 in line 5]" ,
2455+ "Duplicate key \" attr03\" at 90 [character 13 line 5]" ,
24562456 e .getMessage ());
24572457 }
24582458 try {
@@ -2472,7 +2472,7 @@ public void jsonObjectParsingErrors() {
24722472 fail ("Expected an exception" );
24732473 } catch (JSONException e ) {
24742474 assertEquals ("Expecting an expection message" ,
2475- "Duplicate key \" attr04-03\" at index 215 [character number 20 in line 9]" ,
2475+ "Duplicate key \" attr04-03\" at 215 [character 20 line 9]" ,
24762476 e .getMessage ());
24772477 }
24782478 try {
@@ -2496,7 +2496,7 @@ public void jsonObjectParsingErrors() {
24962496 fail ("Expected an exception" );
24972497 } catch (JSONException e ) {
24982498 assertEquals ("Expecting an expection message" ,
2499- "Duplicate key \" attr04-03\" at index 215 [character number 20 in line 9]" ,
2499+ "Duplicate key \" attr04-03\" at 215 [character 20 line 9]" ,
25002500 e .getMessage ());
25012501 }
25022502 try {
@@ -2522,7 +2522,7 @@ public void jsonObjectParsingErrors() {
25222522 fail ("Expected an exception" );
25232523 } catch (JSONException e ) {
25242524 assertEquals ("Expecting an expection message" ,
2525- "Duplicate key \" attr04-03\" at index 215 [character number 20 in line 9]" ,
2525+ "Duplicate key \" attr04-03\" at 215 [character 20 line 9]" ,
25262526 e .getMessage ());
25272527 }
25282528 try {
@@ -2541,7 +2541,7 @@ public void jsonObjectParsingErrors() {
25412541 fail ("Expected an exception" );
25422542 } catch (JSONException e ) {
25432543 assertEquals ("Expecting an expection message" ,
2544- "Duplicate key \" attr01\" at index 124 [character number 17 in line 8]" ,
2544+ "Duplicate key \" attr01\" at 124 [character 17 line 8]" ,
25452545 e .getMessage ());
25462546 }
25472547 try {
@@ -2566,7 +2566,7 @@ public void jsonObjectParsingErrors() {
25662566 fail ("Expected an exception" );
25672567 } catch (JSONException e ) {
25682568 assertEquals ("Expecting an expection message" ,
2569- "Duplicate key \" attr02-01\" at index 269 [character number 24 in line 13]" ,
2569+ "Duplicate key \" attr02-01\" at 269 [character 24 line 13]" ,
25702570 e .getMessage ());
25712571 }
25722572 }
0 commit comments