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

0001 /*
0002    SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 
0011 class UserTest : public QObject
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit UserTest(QObject *parent = nullptr);
0016     ~UserTest() override = default;
0017 
0018 private Q_SLOTS:
0019     void shouldHaveDefaultValue();
0020     void shouldSetAndGetName();
0021     void shouldSetAndGetStatus();
0022     void shouldSetAndGetUserId();
0023     void shouldParseUser();
0024     void checkEqualsAndUnequalsOperator();
0025 
0026     void shouldParseJson_data();
0027     void shouldParseJson();
0028 
0029     void shouldGetStatusIcon_data();
0030     void shouldGetStatusIcon();
0031 
0032     void shouldBeValid();
0033 
0034     void shouldParseRestApiJson_data();
0035     void shouldParseRestApiJson();
0036 };