Skip to content

Commit 8a3a634

Browse files
committed
Add additional integration test for conditionals and for #187
1 parent 156a799 commit 8a3a634

File tree

60 files changed

+452
-8
lines changed

Some content is hidden

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

60 files changed

+452
-8
lines changed

metafix/src/test/resources/org/metafacture/metafix/integration/conditional/fromJson/toJson/IfAny_containSimple/expected.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@
1212
"type" : "stone",
1313
"test" : "test"
1414
}
15-
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See issue #187
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"type" : [ "dog", "dog", "dog" ],
3+
"test" : "test"
4+
}
5+
{
6+
"type" : [ "video", "dog", "dog" ],
7+
"test" : "test"
8+
}
9+
{
10+
"type" : [ "book", "pc" ]
11+
}
12+
{
13+
"type" : [ "human", "cat" ]
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"type" : [ "dog", "dog", "dog" ]
3+
}
4+
{
5+
"type" : [ "video", "dog", "dog" ]
6+
}
7+
{
8+
"type" : [ "book", "pc" ]
9+
}
10+
{
11+
"type" : [ "human", "cat" ]
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if any_contain("type[]", "o")
2+
add_field("test", "test")
3+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FLUX_DIR + "input.json"
2+
|open-file
3+
|as-records
4+
|decode-json
5+
|fix(FLUX_DIR + "test.fix")
6+
|encode-json(prettyPrinting="true")
7+
|write(FLUX_DIR + "output-metafix.json")
8+
;

metafix/src/test/resources/org/metafacture/metafix/integration/conditional/fromJson/toJson/ifAll_containSimple/expected.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@
1212
"type" : "stone",
1313
"test" : "test"
1414
}
15-

metafix/src/test/resources/org/metafacture/metafix/integration/conditional/fromJson/toJson/ifAll_containSimple/input.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@
1010
{
1111
"type" : "stone"
1212
}
13-
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"type" : [ "dog", "dog", "dog" ],
3+
"test" : "test"
4+
}
5+
{
6+
"type" : [ "video", "dog", "dog" ]
7+
}
8+
{
9+
"type" : [ "book", "dog", "dog" ]
10+
}
11+
{
12+
"type" : [ "stone", "cat" ]
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"type" : [ "dog", "dog", "dog" ]
3+
}
4+
{
5+
"type" : [ "video", "dog", "dog" ]
6+
}
7+
{
8+
"type" : [ "book", "dog", "dog" ]
9+
}
10+
{
11+
"type" : [ "stone", "cat" ]
12+
}
13+

0 commit comments

Comments
 (0)