Adapt tests for checking a stanza's JID
This commit is contained in:
parent
613400a718
commit
33d34dc5b1
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue