Commit 368dd0c5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to create unitest for sendlaterinfo

parent 068e95f2
......@@ -6,3 +6,19 @@ target_link_libraries(sendlaterinfo_gui
${KDE4_KDEUI_LIBS}
sendlater
)
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../.. )
remove_definitions( -DQT_NO_CAST_FROM_BYTEARRAY )
# Convenience macro to add unit tests.
macro( sendlater_agent _source )
set( _test ${_source} )
get_filename_component( _name ${_source} NAME_WE )
kde4_add_unit_test( ${_name} TESTNAME sendlater-${_name} ${_test} )
target_link_libraries( ${_name} ${QT_QTTEST_LIBRARY} ${QT_QTCORE_LIBRARY} ${KDE4_KDEUI_LIBS} sendlater)
endmacro()
sendlater_agent(sendlaterinfotest.cpp)
/*
Copyright (c) 2014 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "sendlaterinfotest.h"
#include <qtest_kde.h>
SendLaterInfoTest::SendLaterInfoTest()
{
}
void SendLaterInfoTest::shouldHaveDefaultValue()
{
}
QTEST_KDEMAIN(SendLaterInfoTest, NoGUI)
/*
Copyright (c) 2014 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef SENDLATERINFOTEST_H
#define SENDLATERINFOTEST_H
#include <QObject>
class SendLaterInfoTest : public QObject
{
public:
SendLaterInfoTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // SENDLATERINFOTEST_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment