| 59 | } |
| 60 | |
| 61 | void TestServer::writeJsonFile(const QString &fileName, const QJsonObject &data) |
| 62 | { |
| 63 | QFile f{fileName}; |
| 64 | QVERIFY(f.open(QIODeviceBase::WriteOnly | QIODeviceBase::Text)); |
| 65 | |
| 66 | const QJsonDocument json{data}; |
| 67 | |
| 68 | QVERIFY(f.write(json.toJson(QJsonDocument::Indented)) > 0); |
| 69 | } |
| 70 | |
| 71 | void TestServer::initTestCase() |
| 72 | { |