@@ -1246,6 +1246,11 @@ private void testMethod_reorderVisually2() {
1246
1246
"when levelStart is -1." );
1247
1247
}
1248
1248
catch (IllegalArgumentException e ) {
1249
+ if (!e .getMessage ().equals (
1250
+ "Value levelStart -1 is out of range 0 to " + (llen - 1 ))) {
1251
+ errorHandling ("reorderVisually() should throw an IAE" +
1252
+ " mentioning levelStart is beyond the levels range. Message: " + e .getMessage ());
1253
+ }
1249
1254
}
1250
1255
catch (ArrayIndexOutOfBoundsException e ) {
1251
1256
errorHandling ("reorderVisually() should not throw an AIOoBE " +
@@ -1258,6 +1263,11 @@ private void testMethod_reorderVisually2() {
1258
1263
"when levelStart is 6(levels.length)." );
1259
1264
}
1260
1265
catch (IllegalArgumentException e ) {
1266
+ if (!e .getMessage ().equals (
1267
+ "Value levelStart " + llen + " is out of range 0 to " + (llen - 1 ))) {
1268
+ errorHandling ("reorderVisually() should throw an IAE" +
1269
+ " mentioning levelStart is beyond the levels range. Message: " + e .getMessage ());
1270
+ }
1261
1271
}
1262
1272
catch (ArrayIndexOutOfBoundsException e ) {
1263
1273
errorHandling ("reorderVisually() should not throw an AIOoBE " +
@@ -1278,6 +1288,11 @@ private void testMethod_reorderVisually2() {
1278
1288
" when objectStart is -1." );
1279
1289
}
1280
1290
catch (IllegalArgumentException e ) {
1291
+ if (!e .getMessage ().equals (
1292
+ "Value objectStart -1 is out of range 0 to " + (olen - 1 ))) {
1293
+ errorHandling ("reorderVisually() should throw an IAE" +
1294
+ " mentioning objectStart is beyond the objects range. Message: " + e .getMessage ());
1295
+ }
1281
1296
}
1282
1297
catch (ArrayIndexOutOfBoundsException e ) {
1283
1298
errorHandling ("reorderVisually() should not throw an AIOoBE " +
@@ -1290,6 +1305,11 @@ private void testMethod_reorderVisually2() {
1290
1305
"when objectStart is 6(objects.length)." );
1291
1306
}
1292
1307
catch (IllegalArgumentException e ) {
1308
+ if (!e .getMessage ().equals (
1309
+ "Value objectStart 6 is out of range 0 to " + (olen - 1 ))) {
1310
+ errorHandling ("reorderVisually() should throw an IAE" +
1311
+ " mentioning objectStart is beyond the objects range. Message: " + e .getMessage ());
1312
+ }
1293
1313
}
1294
1314
1295
1315
try {
@@ -1298,6 +1318,12 @@ private void testMethod_reorderVisually2() {
1298
1318
"when count is -1." );
1299
1319
}
1300
1320
catch (IllegalArgumentException e ) {
1321
+ if (!e .getMessage ().equals (
1322
+ "Value count -1 is less than zero, or objectStart + count " +
1323
+ "is beyond objects length " + olen )) {
1324
+ errorHandling ("reorderVisually() should throw an IAE" +
1325
+ " mentioning objectStart/count is beyond the objects range. Message: " + e .getMessage ());
1326
+ }
1301
1327
}
1302
1328
catch (NegativeArraySizeException e ) {
1303
1329
errorHandling ("reorderVisually() should not throw an NASE " +
@@ -1310,6 +1336,12 @@ private void testMethod_reorderVisually2() {
1310
1336
"when count is 7(objects.length+1)." );
1311
1337
}
1312
1338
catch (IllegalArgumentException e ) {
1339
+ if (!e .getMessage ().equals (
1340
+ "Value count " + (count + 1 ) + " is less than zero, or objectStart + count " +
1341
+ "is beyond objects length " + olen )) {
1342
+ errorHandling ("reorderVisually() should throw an IAE" +
1343
+ " mentioning objectStart/count is beyond the objects range. Message: " + e .getMessage ());
1344
+ }
1313
1345
}
1314
1346
catch (ArrayIndexOutOfBoundsException e ) {
1315
1347
errorHandling ("reorderVisually() should not throw an AIOoBE " +
0 commit comments