35
35
#include "logger.h"
36
36
#include "validator.h"
38
void AccountTest::TestAddRemove(void) {
39
_debug ("-------------------- AccountTest::TestAddRemove --------------------\n");
41
std::map<std::string, std::string> details;
42
details[CONFIG_ACCOUNT_TYPE] = "SIP";
43
details[CONFIG_ACCOUNT_ENABLE] = "false";
45
std::string accountId = Manager::instance().addAccount(details);
46
CPPUNIT_ASSERT(Validator::isNotNull(accountId));
47
CPPUNIT_ASSERT(Manager::instance().accountExists(accountId));
49
Manager::instance().removeAccount(accountId);
51
CPPUNIT_ASSERT(!Manager::instance().accountExists(accountId));
38
void AccountTest::TestAddRemove (void)
40
_debug ("-------------------- AccountTest::TestAddRemove --------------------\n");
42
std::map<std::string, std::string> details;
43
details[CONFIG_ACCOUNT_TYPE] = "SIP";
44
details[CONFIG_ACCOUNT_ENABLE] = "false";
46
std::string accountId = Manager::instance().addAccount (details);
47
CPPUNIT_ASSERT (Validator::isNotNull (accountId));
48
CPPUNIT_ASSERT (Manager::instance().accountExists (accountId));
50
Manager::instance().removeAccount (accountId);
52
CPPUNIT_ASSERT (!Manager::instance().accountExists (accountId));