Commit fdb88bbd authored by Boudewijn Rempt's avatar Boudewijn Rempt

Add skeleton unittest for Mohit to play with

parent 17b93e26
......@@ -197,3 +197,9 @@ set(kis_categorized_list_model_test_SRCS kis_categorized_list_model_test.cpp mod
kde4_add_unit_test(KisCategorizedListModelTest TESTNAME krita-ui-KisCategorizedListModelTest ${kis_categorized_list_model_test_SRCS})
target_link_libraries(KisCategorizedListModelTest ${KDE4_KDEUI_LIBS} kritaui kritaimage ${QT_QTTEST_LIBRARY})
########### next target ###############
set(kis_resource_server_provider_test_SRCS kis_resource_server_provider_test.cpp modeltest.cpp)
kde4_add_unit_test(KisResourceServerProviderTest TESTNAME krita-ui-KisResourceServerProviderTest ${kis_resource_server_provider_test_SRCS})
target_link_libraries(KisResourceServerProviderTest ${KDE4_KDEUI_LIBS} kritaui kritaimage ${QT_QTTEST_LIBRARY})
/*
* Copyright (c) 2007 Boudewijn Rempt boud@valdyas.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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 "kis_resource_server_provider_test.h"
#include <qtest_kde.h>
#include "kis_resource_server_provider.h"
void KisResourceServerProviderTest::testFetchResource()
{
KoResourceServer<KisPaintOpPreset> * rserver = KisResourceServerProvider::instance()->paintOpPresetServer();
// get a known preset by name
// modify it
// get it a second time
// check...
}
QTEST_KDEMAIN(KisResourceServerProviderTest, GUI)
#include "kis_resource_server_provider_test.moc"
/*
* Copyright (c) 2007 Boudewijn Rempt boud@valdyas.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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 KIS_AUTOGRADIENT_RESOURCE_TEST_H
#define KIS_AUTOGRADIENT_RESOURCE_TEST_H
#include <QtTest>
class KisResourceServerProviderTest : public QObject
{
Q_OBJECT
private slots:
void testFetchResource();
};
#endif
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