diff --git a/sources/test/testawconfighelper.cpp b/sources/test/testawconfighelper.cpp index 7ccffda..0f7c3a7 100644 --- a/sources/test/testawconfighelper.cpp +++ b/sources/test/testawconfighelper.cpp @@ -64,4 +64,18 @@ void TestAWConfigHelper::test_importConfiguration() } +void TestAWConfigHelper::test_readDataEngineConfiguration() +{ + deConfig = plugin->readDataEngineConfiguration(); + QVERIFY(!deConfig.isEmpty()); +} + + +void TestAWConfigHelper::test_writeDataEngineConfiguration() +{ + QVERIFY(plugin->writeDataEngineConfiguration(deConfig)); + QCOMPARE(plugin->readDataEngineConfiguration(), deConfig); +} + + QTEST_MAIN(TestAWConfigHelper); diff --git a/sources/test/testawconfighelper.h b/sources/test/testawconfighelper.h index 4f6dfdd..8591015 100644 --- a/sources/test/testawconfighelper.h +++ b/sources/test/testawconfighelper.h @@ -38,11 +38,14 @@ private slots: void test_configurationDirectory(); void test_exportConfiguration(); void test_importConfiguration(); + void test_readDataEngineConfiguration(); + void test_writeDataEngineConfiguration(); private: AWConfigHelper *plugin = nullptr; QString filename; QQmlPropertyMap map; + QVariantMap deConfig; };