Skip to content

Commit 19051fb

Browse files
committed
Use add_array instead of set_array in integration tests #374
As a preliminary work for #309 since set_array will change its behaviour but add_array will keep the functionality.
1 parent a8e45e9 commit 19051fb

File tree

66 files changed

+19
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+19
-19
lines changed

metafix/src/test/resources/org/metafacture/metafix/integration/lookup/fromXml/toJson/lookupInDeeplyNestedArrayOfObjects/test.fix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
put_map("rswk-indicator", s: "SubjectHeading")
22

33
if exists("6890?")
4-
set_array("subject[].$append.type[]", "ComplexSubject")
5-
set_array("subject[].$last.label")
6-
set_array("subject[].$last.componentList[]")
4+
add_array("subject[].$append.type[]", "ComplexSubject")
5+
add_array("subject[].$last.label")
6+
add_array("subject[].$last.componentList[]")
77
do list(path: "6890?", "var": "$i")
8-
set_array("subject[].$last.componentList[].$append.type[]")
8+
add_array("subject[].$last.componentList[].$append.type[]")
99
do list(path: "$i.D", "var": "$k")
1010
copy_field("$k", "subject[].$last.componentList[].$last.type[].$append")
1111
end

metafix/src/test/resources/org/metafacture/metafix/integration/method/fromXml/toJson/replace_allInOptionalSubfieldOfRepeatedObjectsWithAsterisk/test.fix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set_array("RSWK[]")
1+
add_array("RSWK[]")
22
do list(path: "650??", "var": "$i")
33
copy_field("$i.a", "RSWK[].$append.subjectTopicName")
44
copy_field("$i.v", "RSWK[].$last.subjectGenre")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add_array("animals_2[].$append.test[]", "test", "test", "test")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add_array("animals[].*.test[]", "test")

0 commit comments

Comments
 (0)