mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-29 09:42:06 +01:00
Format test strings of DataLayoutTest
This commit is contained in:
parent
62bb02af8c
commit
f2a748db9a
1 changed files with 25 additions and 2 deletions
|
@ -41,8 +41,31 @@ import org.xmlpull.v1.XmlPullParserException;
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class DataLayoutTest {
|
public class DataLayoutTest {
|
||||||
private static final String TEST_OUTPUT_2 = "<page xmlns='http://jabber.org/protocol/xdata-layout' label='Label'><fieldref var='testField1'/><section label='section Label'><text>SectionText</text></section><text>PageText</text></page>";
|
// @formatter:off
|
||||||
private static final String TEST_OUTPUT_SPECIAL = "<page xmlns='http://jabber.org/protocol/xdata-layout' label='Label - & \u00E9 \u00E1 '><fieldref var='testField1'/><section label='section Label - & \u00E9 \u00E1 '><text>SectionText - & \u00E9 \u00E1 </text></section><text>PageText - & \u00E9 \u00E1 </text><section label='<html>Number of Persons by<br/> Nationality and Status</html>'><reportedref/></section><text><html><font color='red'><em>DO NOT DELAY</em></font><br/>supply further information</html></text></page>";
|
private static final String TEST_OUTPUT_2 =
|
||||||
|
"<page xmlns='http://jabber.org/protocol/xdata-layout' label='Label'>"
|
||||||
|
+ "<fieldref var='testField1'/>"
|
||||||
|
+ "<section label='section Label'>"
|
||||||
|
+ "<text>SectionText</text>"
|
||||||
|
+ "</section>"
|
||||||
|
+ "<text>PageText</text>"
|
||||||
|
+ "</page>";
|
||||||
|
|
||||||
|
private static final String TEST_OUTPUT_SPECIAL =
|
||||||
|
"<page xmlns='http://jabber.org/protocol/xdata-layout' label='Label - & \u00E9 \u00E1 '>"
|
||||||
|
+ "<fieldref var='testField1'/>"
|
||||||
|
+ "<section label='section Label - & \u00E9 \u00E1 '>"
|
||||||
|
+ "<text>SectionText - & \u00E9 \u00E1 </text>"
|
||||||
|
+ "</section>"
|
||||||
|
+ "<text>PageText - & \u00E9 \u00E1 </text>"
|
||||||
|
+ "<section label='<html>Number of Persons by<br/> Nationality and Status</html>'>"
|
||||||
|
+ "<reportedref/>"
|
||||||
|
+ "</section>"
|
||||||
|
+ "<text><html><font color='red'><em>DO NOT DELAY</em></font><br/>supply further information</html></text>"
|
||||||
|
+ "</page>";
|
||||||
|
|
||||||
|
// @formatter:on
|
||||||
|
|
||||||
private static final String TEST_INPUT_1 = "xdata-layout-sample.xml";
|
private static final String TEST_INPUT_1 = "xdata-layout-sample.xml";
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in a new issue