mirror of
https://github.com/redis/RedisDesktopManager.git
synced 2026-10-21 06:35:48 +08:00
17 lines
416 B
C++
17 lines
416 B
C++
#include "RedisConnectionsManager.h"
|
|
#include "test_redisconnectionsmanager.h"
|
|
#include <QtTest/QtTest>
|
|
|
|
void TestRedisConnectionsManager::LoadConnectionsConfigFromFile()
|
|
{
|
|
//given
|
|
// xml fixture test-config.xml
|
|
QString configTestFile = "./stubs//connections.xml";
|
|
|
|
//when loads connections
|
|
RedisConnectionsManager testManager(configTestFile, nullptr);
|
|
|
|
//then
|
|
QCOMPARE(testManager.connections.size(), 1);
|
|
|
|
} |