Skip to content

Commit f47c291

Browse files
author
mgeipel
committed
Metamorph test case for collectors extended
1 parent caf2096 commit f47c291

File tree

1 file changed

+38
-0
lines changed
  • src/test/java/org/culturegraph/mf/morph/collectors

1 file changed

+38
-0
lines changed

src/test/java/org/culturegraph/mf/morph/collectors/Misc.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,44 @@
4242
</cgxml:cgxml>
4343
</result>
4444
</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>
4583

4684

4785
<test-case name="entity end info">

0 commit comments

Comments
 (0)