@@ -142,14 +142,14 void TestAmdaParser::testReadJson_data() | |||||
142 | QTest::newRow("Valid file") << QStringLiteral("ValidFile1.json") << validResults1(); |
|
142 | QTest::newRow("Valid file") << QStringLiteral("ValidFile1.json") << validResults1(); | |
143 |
|
143 | |||
144 | // Invalid files |
|
144 | // Invalid files | |
145 | QTest::newRow("Invalid file (unexisting file)") |
|
145 | QTest::newRow("Invalid file (unexisting file)") << QStringLiteral("UnexistingFile.json") | |
146 | << QStringLiteral("UnexistingFile.json") << invalidResults(); |
|
146 | << invalidResults(); | |
147 | QTest::newRow("Invalid file (two root objects)") |
|
147 | QTest::newRow("Invalid file (two root objects)") << QStringLiteral("TwoRootsFile.json") | |
148 | << QStringLiteral("TwoRootsFile.json") << invalidResults(); |
|
148 | << invalidResults(); | |
149 | QTest::newRow("Invalid file (wrong root key)") |
|
149 | QTest::newRow("Invalid file (wrong root key)") << QStringLiteral("WrongRootKey.json") | |
150 | << QStringLiteral("WrongRootKey.json") << invalidResults(); |
|
150 | << invalidResults(); | |
151 | QTest::newRow("Invalid file (wrong root type)") |
|
151 | QTest::newRow("Invalid file (wrong root type)") << QStringLiteral("WrongRootType.json") | |
152 | << QStringLiteral("WrongRootType.json") << invalidResults(); |
|
152 | << invalidResults(); | |
153 | } |
|
153 | } | |
154 |
|
154 | |||
155 | void TestAmdaParser::testReadJson() |
|
155 | void TestAmdaParser::testReadJson() |
General Comments 0
You need to be logged in to leave comments.
Login now