summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-01-12 16:48:02 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-01-16 15:54:31 (GMT)
commit839db071f46d083b86996f514f5fe0f2d6aee80a (patch)
tree9f14beb42dcd82fa4deba10f516a0ba0368e57b5 /test
parent3adee817bfcbd54fd13c4d946bedadeca661e9b1 (diff)
downloadstroke-839db071f46d083b86996f514f5fe0f2d6aee80a.zip
stroke-839db071f46d083b86996f514f5fe0f2d6aee80a.tar.bz2
Add support for DiscoItems and DiscoInfo.
Updates requisite classes in line with Swiften. Also fixes bugs in the EventLoops not using handleEvent.
Diffstat (limited to 'test')
-rw-r--r--test/com/isode/stroke/parser/XMLParserTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/com/isode/stroke/parser/XMLParserTest.java b/test/com/isode/stroke/parser/XMLParserTest.java
index 69ed0e1..e3f054b 100644
--- a/test/com/isode/stroke/parser/XMLParserTest.java
+++ b/test/com/isode/stroke/parser/XMLParserTest.java
@@ -73,13 +73,13 @@ public class XMLParserTest {
assertEquals(Client.Type.StartElement, client_.events.get(0).type);
assertEquals("iq", client_.events.get(0).data);
- assertEquals(1, client_.events.get(0).attributes.size());
- assertEquals("get", client_.events.get(0).attributes.get("type"));
+ assertEquals(1, client_.events.get(0).attributes.getEntries().size());
+ assertEquals("get", client_.events.get(0).attributes.getAttribute("type"));
assertEquals("", client_.events.get(0).ns);
assertEquals(Client.Type.StartElement, client_.events.get(1).type);
assertEquals("query", client_.events.get(1).data);
- assertEquals(0, client_.events.get(1).attributes.size());
+ assertEquals(0, client_.events.get(1).attributes.getEntries().size());
assertEquals("jabber:iq:version", client_.events.get(1).ns);
assertEquals(Client.Type.EndElement, client_.events.get(2).type);
@@ -104,7 +104,7 @@ public class XMLParserTest {
assertEquals(Client.Type.StartElement, client_.events.get(0).type);
assertEquals("query", client_.events.get(0).data);
- assertEquals(0, client_.events.get(0).attributes.size());
+ assertEquals(0, client_.events.get(0).attributes.getEntries().size());
assertEquals("jabber:iq:version", client_.events.get(0).ns);
assertEquals(Client.Type.StartElement, client_.events.get(1).type);