File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
src/test/java/org/culturegraph/mf/morph/collectors Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 42
42
</cgxml : cgxml >
43
43
</result >
44
44
</test-case >
45
+
46
+ <test-case name =" flush literal should be received before flush" >
47
+ <input type =" text/x-cg+xml" >
48
+ <cgxml : cgxml version =" 1.0" >
49
+ <cgxml : records >
50
+ <cgxml : record id =" 1" >
51
+ <cgxml : literal name =" f" value =" 1" />
52
+ <cgxml : literal name =" f" value =" 2" />
53
+ <cgxml : literal name =" d" value =" a" />
54
+ <cgxml : literal name =" f" value =" 3" />
55
+ </cgxml : record >
56
+ </cgxml : records >
57
+ </cgxml : cgxml >
58
+ </input >
59
+
60
+ <transformation type =" text/x-metamorph+xml" >
61
+ <metamorph version =" 1" xmlns =" http://www.culturegraph.org/metamorph" >
62
+ <rules >
63
+ <concat delimiter =" " name =" d" flushWith =" f" >
64
+ <data source =" d" />
65
+ <data source =" f" />
66
+ </concat >
67
+ </rules >
68
+ </metamorph >
69
+ </transformation >
70
+
71
+ <result type =" text/x-cg+xml" >
72
+ <cgxml : cgxml version =" 1.0" >
73
+ <cgxml : records >
74
+ <cgxml : record id =" 1" >
75
+ <cgxml : literal name =" d" value =" 1" />
76
+ <cgxml : literal name =" d" value =" 2" />
77
+ <cgxml : literal name =" d" value =" a3" />
78
+ </cgxml : record >
79
+ </cgxml : records >
80
+ </cgxml : cgxml >
81
+ </result >
82
+ </test-case >
45
83
46
84
47
85
<test-case name =" entity end info" >
You can’t perform that action at this time.
0 commit comments