@@ -2202,7 +2202,7 @@ public void jsonObjectParseControlCharacterEOFAssertExceptionMessage(){
2202
2202
fail ("JSONException should be thrown" );
2203
2203
} catch (JSONException ex ) {
2204
2204
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 ());
2206
2206
}
2207
2207
}
2208
2208
@@ -2216,7 +2216,7 @@ public void jsonObjectParseControlCharacterNewLineAssertExceptionMessage(){
2216
2216
fail ("JSONException should be thrown" );
2217
2217
} catch (JSONException ex ) {
2218
2218
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 ());
2220
2220
}
2221
2221
}
2222
2222
}
@@ -2230,7 +2230,7 @@ public void jsonObjectParseUTF8EncodingAssertExceptionMessage(){
2230
2230
fail ("JSONException should be thrown" );
2231
2231
} catch (JSONException ex ) {
2232
2232
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 ());
2234
2234
}
2235
2235
}
2236
2236
@@ -2243,7 +2243,7 @@ public void jsonObjectParseIllegalEscapeAssertExceptionMessage(){
2243
2243
fail ("JSONException should be thrown" );
2244
2244
} catch (JSONException ex ) {
2245
2245
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 ());
2247
2247
}
2248
2248
}
2249
2249
@@ -2259,7 +2259,7 @@ public void jsonObjectParsingErrors() {
2259
2259
assertNull ("Expected an exception" ,new JSONObject (str ));
2260
2260
} catch (JSONException e ) {
2261
2261
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]" ,
2263
2263
e .getMessage ());
2264
2264
}
2265
2265
try {
@@ -2268,7 +2268,7 @@ public void jsonObjectParsingErrors() {
2268
2268
assertNull ("Expected an exception" ,new JSONObject (str ));
2269
2269
} catch (JSONException e ) {
2270
2270
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]" ,
2272
2272
e .getMessage ());
2273
2273
}
2274
2274
try {
@@ -2277,7 +2277,7 @@ public void jsonObjectParsingErrors() {
2277
2277
assertNull ("Expected an exception" ,new JSONObject (str ));
2278
2278
} catch (JSONException e ) {
2279
2279
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]" ,
2281
2281
e .getMessage ());
2282
2282
}
2283
2283
try {
@@ -2286,7 +2286,7 @@ public void jsonObjectParsingErrors() {
2286
2286
assertNull ("Expected an exception" ,new JSONObject (str ));
2287
2287
} catch (JSONException e ) {
2288
2288
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]" ,
2290
2290
e .getMessage ());
2291
2291
}
2292
2292
try {
@@ -2295,7 +2295,7 @@ public void jsonObjectParsingErrors() {
2295
2295
assertNull ("Expected an exception" ,new JSONObject (str ));
2296
2296
} catch (JSONException e ) {
2297
2297
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]" ,
2299
2299
e .getMessage ());
2300
2300
}
2301
2301
try {
@@ -2304,7 +2304,7 @@ public void jsonObjectParsingErrors() {
2304
2304
assertNull ("Expected an exception" ,new JSONObject (str ));
2305
2305
} catch (JSONException e ) {
2306
2306
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]" ,
2308
2308
e .getMessage ());
2309
2309
}
2310
2310
try {
@@ -2313,7 +2313,7 @@ public void jsonObjectParsingErrors() {
2313
2313
assertNull ("Expected an exception" ,new JSONObject (str ));
2314
2314
} catch (JSONException e ) {
2315
2315
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]" ,
2317
2317
e .getMessage ());
2318
2318
}
2319
2319
try {
@@ -2322,7 +2322,7 @@ public void jsonObjectParsingErrors() {
2322
2322
assertNull ("Expected an exception" ,new JSONObject (str ));
2323
2323
} catch (JSONException e ) {
2324
2324
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]" ,
2326
2326
e .getMessage ());
2327
2327
}
2328
2328
try {
@@ -2331,7 +2331,7 @@ public void jsonObjectParsingErrors() {
2331
2331
assertNull ("Expected an exception" ,new JSONObject (str ));
2332
2332
} catch (JSONException e ) {
2333
2333
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]" ,
2335
2335
e .getMessage ());
2336
2336
}
2337
2337
try {
@@ -2412,7 +2412,7 @@ public void jsonObjectParsingErrors() {
2412
2412
fail ("Expected an exception" );
2413
2413
} catch (JSONException e ) {
2414
2414
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]" ,
2416
2416
e .getMessage ());
2417
2417
}
2418
2418
try {
@@ -2431,7 +2431,7 @@ public void jsonObjectParsingErrors() {
2431
2431
fail ("Expected an exception" );
2432
2432
} catch (JSONException e ) {
2433
2433
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]" ,
2435
2435
e .getMessage ());
2436
2436
}
2437
2437
try {
@@ -2452,7 +2452,7 @@ public void jsonObjectParsingErrors() {
2452
2452
fail ("Expected an exception" );
2453
2453
} catch (JSONException e ) {
2454
2454
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]" ,
2456
2456
e .getMessage ());
2457
2457
}
2458
2458
try {
@@ -2472,7 +2472,7 @@ public void jsonObjectParsingErrors() {
2472
2472
fail ("Expected an exception" );
2473
2473
} catch (JSONException e ) {
2474
2474
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]" ,
2476
2476
e .getMessage ());
2477
2477
}
2478
2478
try {
@@ -2496,7 +2496,7 @@ public void jsonObjectParsingErrors() {
2496
2496
fail ("Expected an exception" );
2497
2497
} catch (JSONException e ) {
2498
2498
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]" ,
2500
2500
e .getMessage ());
2501
2501
}
2502
2502
try {
@@ -2522,7 +2522,7 @@ public void jsonObjectParsingErrors() {
2522
2522
fail ("Expected an exception" );
2523
2523
} catch (JSONException e ) {
2524
2524
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]" ,
2526
2526
e .getMessage ());
2527
2527
}
2528
2528
try {
@@ -2541,7 +2541,7 @@ public void jsonObjectParsingErrors() {
2541
2541
fail ("Expected an exception" );
2542
2542
} catch (JSONException e ) {
2543
2543
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]" ,
2545
2545
e .getMessage ());
2546
2546
}
2547
2547
try {
@@ -2566,7 +2566,7 @@ public void jsonObjectParsingErrors() {
2566
2566
fail ("Expected an exception" );
2567
2567
} catch (JSONException e ) {
2568
2568
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]" ,
2570
2570
e .getMessage ());
2571
2571
}
2572
2572
}
0 commit comments