Add tests for encoding multiple posts.
[Sone.git] / src / test / resources / sone-parser / invalid-field.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2 <sone>
3
4         <time>1382419919000</time>
5         <protocol-version>0</protocol-version>
6
7         <client>
8                 <name>Sone</name>
9                 <version>0.8.7</version>
10         </client>
11
12         <profile>
13                 <first-name>First</first-name>
14                 <middle-name>M.</middle-name>
15                 <last-name>Last</last-name>
16                 <birth-day>22</birth-day>
17                 <birth-month>10</birth-month>
18                 <birth-year>2013</birth-year>
19                 <avatar>96431abe-3add-11e3-8a46-67047503bf6d</avatar>
20                 <fields>
21                         <field>
22                                 <foo>bar</foo>
23                         </field>
24                 </fields>
25         </profile>
26
27         <posts>
28                 <post>
29                         <id>bbb7ebf0-3adb-11e3-8a0b-630cd8f21cf3</id>
30                         <recipient></recipient>
31                         <time>1382420140000</time>
32                         <text>Hello, World!</text>
33                 </post>
34                 <post>
35                         <id>d8c9586e-3adb-11e3-bb31-171fc040e645</id>
36                         <recipient>0rpD4gL8mszav2trndhIdKIxvKUCNAe2kjA3dLV8CVU</recipient>
37                         <time>1382420181000</time>
38                         <text>Hello, User!</text>
39                 </post>
40         </posts>
41
42         <replies>
43                 <reply>
44                         <id>f09fa448-3adb-11e3-a783-ab54a11aacc4</id>
45                         <post-id>bbb7ebf0-3adb-11e3-8a0b-630cd8f21cf3</post-id>
46                         <time>1382420224000</time>
47                         <text>Talking to myself.</text>
48                 </reply>
49                 <reply>
50                         <id>0a376440-3adc-11e3-8f45-c7cc157436a5</id>
51                         <post-id>11ebe86e-3adc-11e3-b7b9-7f2c88018a33</post-id>
52                         <time>1382420271000</time>
53                         <text>Talking to somebody I can't see.</text>
54                 </reply>
55         </replies>
56
57         <post-likes>
58                 <post-like>bbb7ebf0-3adb-11e3-8a0b-630cd8f21cf3</post-like>
59                 <post-like>305d85e6-3adc-11e3-be45-8b53dd91f0af</post-like>
60         </post-likes>
61
62         <reply-likes>
63                 <reply-like>f09fa448-3adb-11e3-a783-ab54a11aacc4</reply-like>
64                 <reply-like>3ba28960-3adc-11e3-93c7-6713d170f44c</reply-like>
65         </reply-likes>
66
67         <albums>
68                 <album>
69                         <id>6a73c6e6-3adc-11e3-b091-577b10a725ad</id>
70                         <title>Album1</title>
71                         <description>First album with stuff.</description>
72                         <album-image>e3707102-3adc-11e3-b828-9f4de99f0bc4</album-image>
73                         <images>
74                                 <image>
75                                         <id>8966f69a-3adc-11e3-802d-0f57b63c8809</id>
76                                         <creation-time>1382420473000</creation-time>
77                                         <key>SSK@JvW9oZ8AriNGbwBosJD1gyMdiMHc5AgSmhNBU1CmAb8,na1IPpMcYiZLaWSv9EWq9NcDPPGplQBw8kJsLobXIG4,AQACAAE/8966f69a-3adc-11e3-802d-0f57b63c8809.jpg</key>
78                                         <title>Stuff</title>
79                                         <description>Yes, it's stuff!</description>
80                                         <width>640</width>
81                                         <height>480</height>
82                                 </image>
83                                 <image>
84                                         <id>e3707102-3adc-11e3-b828-9f4de99f0bc4</id>
85                                         <creation-time>1382420624000</creation-time>
86                                         <key>SSK@dM1er7A9tG242bG-Xxy0kmprD7YkqEDE9mrZ98C~L3E,Np3iWiaGyd~er86edP9ndpH3pPKk2owDmAT2TQZNBA0,AQACAAE/e3707102-3adc-11e3-b828-9f4de99f0bc4.jpg</key>
87                                         <title>More Stuff</title>
88                                         <description>Yes, it's more stuff!</description>
89                                         <width>640</width>
90                                         <height>360</height>
91                                 </image>
92                         </images>
93                 </album>
94                 <album>
95                         <id>1e73b52a-3add-11e3-ba45-cb0c28da9c2a</id>
96                         <parent>6a73c6e6-3adc-11e3-b091-577b10a725ad</parent>
97                         <title>Nested Album</title>
98                         <description>Nested album with stuff.</description>
99                         <album-image>312182ba-3add-11e3-bd76-13e7278f0161</album-image>
100                         <images>
101                                 <image>
102                                         <id>312182ba-3add-11e3-bd76-13e7278f0161</id>
103                                         <creation-time>1382420756000</creation-time>
104                                         <key>SSK@0rpD4gL8mszav2trndhIdKIxvKUCNAe2kjA3dLV8CVU,2KP8WDSaQvyJ16pXBHQrE1vj~fAaYPIsk35lM-ec4B0,AQACAAE/312182ba-3add-11e3-bd76-13e7278f0161.jpg</key>
105                                         <title>Other Stuff</title>
106                                         <description>Yes, it's other stuff!</description>
107                                         <width>640</width>
108                                         <height>272</height>
109                                 </image>
110                         </images>
111                 </album>
112                 <album>
113                         <id>8a04b5fa-3add-11e3-afe2-676e721c04bd</id>
114                         <title>Avatars</title>
115                         <description>The avatar collection.</description>
116                         <album-image>96431abe-3add-11e3-8a46-67047503bf6d</album-image>
117                         <images>
118                                 <image>
119                                         <id>96431abe-3add-11e3-8a46-67047503bf6d</id>
120                                         <creation-time>1382420923000</creation-time>
121                                         <key>SSK@v6Js3ZJBMB23IB0JvdgiPynHQBYEvkFSi3~D8RDdj3s,FfLhjRC4bqYLHVexT33Pv6agXl6Ft~TDhX1jIM5w2n4,AQACAAE/96431abe-3add-11e3-8a46-67047503bf6d.png</key>
122                                         <title>Avatar 1</title>
123                                         <description>The first avatar.</description>
124                                         <width>64</width>
125                                         <height>64</height>
126                                 </image>
127                         </images>
128                 </album>
129         </albums>
130
131 </sone>