File indexing completed on 2024-04-28 07:36:25

0001 /*
0002  * SPDX-FileCopyrightText: 2016 Hartmut Riesenbeck <hartmut.riesenbeck@gmx.de>
0003  * SPDX-License-Identifier: GPL-2.0-or-later
0004  */
0005 
0006 #ifndef EMPTYDOCUMENTTEST_H
0007 #define EMPTYDOCUMENTTEST_H
0008 
0009 #include <QObject>
0010 
0011 namespace EmptyDocumentTests
0012 {
0013 /** @file
0014  * \brief Empty KEduVocDocument test application
0015  *        The creation and destruction of a default constructed KEduVocDocument object shouldn't
0016  *        give any error message on stderr.
0017  * @author Hartmut Riesenbeck <hartmut.riesenbeck@gmx.de>
0018  */
0019 
0020 class EmptyDocumentTest : public QObject
0021 {
0022     Q_OBJECT
0023 
0024 private slots:
0025     void testConstuctionDestruction();
0026 
0027 private:
0028     static void captureMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg);
0029 
0030 private:
0031     static QString sm_cappturedMessageOutput;
0032 };
0033 }
0034 
0035 #endif // EMPTYDOCUMENTTEST_H