ObjXMPP  Check-in [edfa9d8a87]

Overview
Comment:Fix forgotten -[addBody:] -> -[setBody:] in the test.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: edfa9d8a874dc218aec67e706b982dacdf7c9515041e61b04cfd43d08e8c3feb
User & Date: js on 2012-02-03 10:28:51
Other Links: manifest | tags
Context
2012-02-03
10:29
Remove streamOpen property (an ivar is enough). check-in: 171da49bc4 user: js tags: trunk
10:28
Fix forgotten -[addBody:] -> -[setBody:] in the test. check-in: edfa9d8a87 user: js tags: trunk
10:27
Add -Wno-deprecated-declarations to fix building with OpenSSL on Lion. check-in: c1b586ef7a user: js tags: trunk
Changes

Modified tests/test.m from [1465dc8600] to [92c191f042].

59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
	[pres setFrom: [XMPPJID JIDWithString: @"bob@example.org"]];
	assert([[pres XMLString] isEqual: @"<presence to='alice@example.com' "
	    @"from='bob@example.org'><show>chat</show>"
	    @"<status>Bored</status><priority>20</priority>"
	    @"</presence>"]);

	XMPPMessage *msg = [XMPPMessage messageWithType: @"chat"];
	[msg addBody: @"Hello everyone"];
	[msg setTo: [XMPPJID JIDWithString: @"jdev@conference.jabber.org"]];
	[msg setFrom: [XMPPJID JIDWithString: @"alice@example.com"]];
	assert([[msg XMLString] isEqual: @"<message type='chat' "
	    @"to='jdev@conference.jabber.org' "
	    @"from='alice@example.com'><body>Hello everyone</body>"
	    @"</message>"]);








|







59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
	[pres setFrom: [XMPPJID JIDWithString: @"bob@example.org"]];
	assert([[pres XMLString] isEqual: @"<presence to='alice@example.com' "
	    @"from='bob@example.org'><show>chat</show>"
	    @"<status>Bored</status><priority>20</priority>"
	    @"</presence>"]);

	XMPPMessage *msg = [XMPPMessage messageWithType: @"chat"];
	[msg setBody: @"Hello everyone"];
	[msg setTo: [XMPPJID JIDWithString: @"jdev@conference.jabber.org"]];
	[msg setFrom: [XMPPJID JIDWithString: @"alice@example.com"]];
	assert([[msg XMLString] isEqual: @"<message type='chat' "
	    @"to='jdev@conference.jabber.org' "
	    @"from='alice@example.com'><body>Hello everyone</body>"
	    @"</message>"]);