File indexing completed on 2024-12-01 04:35:28

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #include "servererrorinfotest.h"
0007 #include "servererrorinfo.h"
0008 #include <QTest>
0009 
0010 QTEST_GUILESS_MAIN(ServerErrorInfoTest)
0011 ServerErrorInfoTest::ServerErrorInfoTest(QObject *parent)
0012     : QObject{parent}
0013 {
0014 }
0015 
0016 void ServerErrorInfoTest::shouldHaveDefaultValues()
0017 {
0018     ServerErrorInfo info;
0019     QVERIFY(info.message().isEmpty());
0020     QVERIFY(info.accountName().isEmpty());
0021     QVERIFY(info.dateTime().isValid());
0022     QVERIFY(!info.identifier().isEmpty());
0023 }
0024 
0025 #include "moc_servererrorinfotest.cpp"