Changeset - 1a4b25835e7d
[Not reviewed]
0 1 0
Jan Kaluza - 14 years ago 2011-10-26 17:58:13
hanzz.k@gmail.com
RosterManagerTest: check received presences
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/tests/rostermanager.cpp
Show inline comments
 
@@ -114,6 +114,13 @@ class RosterManagerTest : public CPPUNIT_NS :: TestFixture, public BasicTest {
 

	
 
		// we should get presences
 
		CPPUNIT_ASSERT_EQUAL(4, (int) received.size());
 
		CPPUNIT_ASSERT(dynamic_cast<Swift::Presence *>(getStanza(received[2])));
 
		CPPUNIT_ASSERT_EQUAL(Swift::StatusShow::Away, dynamic_cast<Swift::Presence *>(getStanza(received[2]))->getShow());
 
		CPPUNIT_ASSERT_EQUAL(std::string("status1"), dynamic_cast<Swift::Presence *>(getStanza(received[2]))->getStatus());
 

	
 
		CPPUNIT_ASSERT(dynamic_cast<Swift::Presence *>(getStanza(received[3])));
 
		CPPUNIT_ASSERT_EQUAL(Swift::StatusShow::Away, dynamic_cast<Swift::Presence *>(getStanza(received[3]))->getShow());
 
		CPPUNIT_ASSERT_EQUAL(std::string("status2"), dynamic_cast<Swift::Presence *>(getStanza(received[3]))->getStatus());
 
	}
 

	
 
	void disconnectUser() {
0 comments (0 inline, 0 general)