Adapt tests for checking a stanza's JID

This commit is contained in:
Florian Zeitz 2011-02-19 23:17:39 +01:00
parent 613400a718
commit 33d34dc5b1

View file

@ -79,8 +79,8 @@ OF_APPLICATION_DELEGATE(AppDelegate)
[elem addAttributeWithName: @"id" stringValue: @"42"]; [elem addAttributeWithName: @"id" stringValue: @"42"];
XMPPStanza *stanza = [XMPPStanza stanzaWithElement: elem]; XMPPStanza *stanza = [XMPPStanza stanzaWithElement: elem];
assert([[elem stringValue] isEqual: [stanza stringValue]]); assert([[elem stringValue] isEqual: [stanza stringValue]]);
assert(([[OFString stringWithFormat: @"%@, %@, %@, %@", stanza.from, assert(([[OFString stringWithFormat: @"%@, %@, %@, %@",
stanza.to, stanza.type, stanza.ID] stanza.from.fullJID, stanza.to.fullJID, stanza.type, stanza.ID]
isEqual: @"bob@localhost, alice@localhost, get, 42"])); isEqual: @"bob@localhost, alice@localhost, get, 42"]));
conn = [[XMPPConnection alloc] init]; conn = [[XMPPConnection alloc] init];