Skip to content

Commit db9745b

Browse files
committed
Update tests for Java 11. (#345)
1 parent 8c9789a commit db9745b

File tree

2 files changed

+2
-2
lines changed
  • metafix/src/test

2 files changed

+2
-2
lines changed

metafix/src/test/java/org/metafacture/metafix/MetafixMethodTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ public void copyFieldToSubfieldOfArrayOfObjectsWithExplicitAppend() {
23102310

23112311
@Test
23122312
public void copyFieldToSubfieldOfArrayOfStringsWithIndexImplicitAppend() {
2313-
MetafixTestHelpers.assertProcessException(IndexOutOfBoundsException.class, "Index: 0, Size: 0", () ->
2313+
MetafixTestHelpers.assertProcessException(IndexOutOfBoundsException.class, "Index 0 out of bounds for length 0", () ->
23142314
MetafixTestHelpers.assertFix(streamReceiver, Arrays.asList(
23152315
"set_array('test[]')",
23162316
"copy_field('key', 'test[].1')"
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
^Exception in thread "main" org\.metafacture\.metafix\.FixProcessException: Error while executing Fix expression \(at .*/metafix/src/test/resources/org/metafacture/metafix/integration/record/fromJson/toJson/copy_fieldToArrayOfStringsWithIndex/test\.fix, line 2\): copy_field\("key", "test\[\]\.1"\)$
2-
^Caused by: java\.lang\.IndexOutOfBoundsException: Index: 0, Size: 0$
2+
^Caused by: java\.lang\.IndexOutOfBoundsException: Index 0 out of bounds for length 0$

0 commit comments

Comments
 (0)