Commit f9829d78 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Implement import note test

parent f0b5bc58
......@@ -6,3 +6,11 @@ add_executable( exportnotesjobinterfacetest ${exportnotesjobinterfacetest_SRCS})
add_test(NAME exportnotesjobinterfacetest COMMAND exportnotesjobinterfacetest)
ecm_mark_as_test(exportnotesjobinterfacetest)
target_link_libraries( exportnotesjobinterfacetest Qt5::Test pimdataexporterprivate test_resourceconverter KF5::ConfigCore KF5::Archive)
#######
set( importnotesjobinterfacetest_SRCS importnotesjobinterfacetest.cpp)
add_executable( importnotesjobinterfacetest ${importnotesjobinterfacetest_SRCS})
add_test(NAME importnotesjobinterfacetest COMMAND importnotesjobinterfacetest)
ecm_mark_as_test(importnotesjobinterfacetest)
target_link_libraries( importnotesjobinterfacetest Qt5::Test pimdataexporterprivate test_resourceconverter KF5::ConfigCore KF5::Archive)
......@@ -18,7 +18,6 @@
*/
#include "exportnotesjobinterfacetest.h"
#include "notes/exportnotesjobinterface.h"
#include "archivestorage.h"
#include "resourceconvertertest.h"
#include "compareexportfile.h"
......
/*
Copyright (C) 2020 Laurent Montel <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 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; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "importnotesjobinterfacetest.h"
#include "notes/importnotesjobinterface.h"
#include <QTest>
QTEST_MAIN(ImportNotesJobInterfaceTest)
ImportNotesJobInterfaceTestImpl::ImportNotesJobInterfaceTestImpl(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep)
: ImportNotesJobInterface(parent, typeSelected, archiveStorage, numberOfStep)
{
}
ImportNotesJobInterfaceTestImpl::~ImportNotesJobInterfaceTestImpl()
{
}
void ImportNotesJobInterfaceTestImpl::restoreResources()
{
qDebug() << " not implement yet";
}
ImportNotesJobInterfaceTest::ImportNotesJobInterfaceTest(QObject *parent)
: QObject(parent)
{
}
/*
Copyright (C) 2020 Laurent Montel <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 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; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef IMPORTNOTESJOBINTERFACETEST_H
#define IMPORTNOTESJOBINTERFACETEST_H
#include <QObject>
#include "notes/importnotesjobinterface.h"
class ImportNotesJobInterfaceTestImpl : public ImportNotesJobInterface
{
Q_OBJECT
public:
explicit ImportNotesJobInterfaceTestImpl(QObject *parent, Utils::StoredTypes typeSelected, ArchiveStorage *archiveStorage, int numberOfStep);
~ImportNotesJobInterfaceTestImpl();
private:
void restoreResources() override;
};
class ImportNotesJobInterfaceTest : public QObject
{
Q_OBJECT
public:
explicit ImportNotesJobInterfaceTest(QObject *parent = nullptr);
~ImportNotesJobInterfaceTest() = default;
};
#endif // IMPORTNOTESJOBINTERFACETEST_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