void TestNntpServerManager::test_getAllCons2serv1user(){ User *user = iUserMgr->addUser("127.0.0.1", "mb"); createUserUsingAllConnections(user); NntpConnection * con666 = iSrvMgr->getNntpConnection(666, user); QVERIFY(con666 == Q_NULLPTR); deleteConnections(); QVERIFY(iUserMgr->releaseUser(user, *iDb)); }
void TestNntpServerManager::test_stealingConnections(){ User *user = iUserMgr->addUser("127.0.0.1", "mb"); createUserUsingAllConnections(user); User *user2 = iUserMgr->addUser("127.0.0.2", "bob"); deleteConnections(); QVERIFY(iUserMgr->releaseUser(user, *iDb)); QVERIFY(iUserMgr->releaseUser(user2, *iDb)); }
GvField::~GvField() { deleteConnections(); }