File indexing completed on 2024-05-12 16:25:27

0001 /*
0002    SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "oauthinfotest.h"
0008 #include "oauth/oauthinfo.h"
0009 #include <QTest>
0010 QTEST_GUILESS_MAIN(OauthInfoTest)
0011 
0012 OauthInfoTest::OauthInfoTest(QObject *parent)
0013     : QObject{parent}
0014 {
0015 }
0016 
0017 void OauthInfoTest::shouldHaveDefaultValues()
0018 {
0019     OauthInfo info;
0020     QVERIFY(info.identifier().isEmpty());
0021     QVERIFY(info.name().isEmpty());
0022     QVERIFY(info.clientId().isEmpty());
0023     QVERIFY(info.clientSecret().isEmpty());
0024     QVERIFY(info.redirectUri().isEmpty());
0025     QVERIFY(info.createdBy().isEmpty());
0026     QVERIFY(!info.active());
0027     // TODO
0028 }
0029 
0030 #include "moc_oauthinfotest.cpp"