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

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 RoomModelTest : public QObject
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit RoomModelTest(QObject *parent = nullptr);
0016     ~RoomModelTest() override = default;
0017 
0018 private Q_SLOTS:
0019     void shouldHaveDefaultValues();
0020     void shouldReturnRowCount();
0021     void shouldFindRoom();
0022     void shouldAddRoom();
0023     void shouldUpdateRoom();
0024     void shouldUpdateRoomFromQJsonObject();
0025     void shouldUpdateSubcriptionActionRemoved();
0026     void shouldUpdateSubcriptionActionInserted();
0027     void shouldUpdateSubcriptionActionUpdated();
0028     void shouldClear();
0029     void shouldReset();
0030     void shouldReturnDataDefault();
0031     void shouldReturnData();
0032     void shouldInsertRoom_data();
0033     void shouldInsertRoom();
0034 };