Commit 38a0ac4a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use CompareImportFile directly

parent ea44e6b9
......@@ -62,7 +62,7 @@ void ImportNotesJobInterfaceTest::importNoteConfig()
{
QFETCH(QString, zipFilePath);
TestImportFile *file = new TestImportFile(zipFilePath, this);
file->setPathConfig(path);
file->setPathConfig(zipFilePath);
ImportNotesJobInterfaceTestImpl *impl = new ImportNotesJobInterfaceTestImpl(this, {Utils::StoredType::Config}, file->archiveStorage(), 1);
file->setAbstractImportExportJob(impl);
file->start();
......
......@@ -21,7 +21,7 @@
#include "archivestorage.h"
#include "abstractimportexportjob.h"
#include "compareexportfile.h"
#include "compareimportfile.h"
#include <QSignalSpy>
#include <QTest>
......@@ -49,10 +49,10 @@ void TestImportFile::start()
delete mArchiveStorage;
mArchiveStorage = nullptr;
CompareExportFile compareExportFile;
compareExportFile.setTempFilePath(mArchivePath);
CompareImportFile compareExportFile;
compareExportFile.setArchiveFilePath(mArchivePath);
compareExportFile.setListFilePath(mPathConfig);
compareExportFile.compareFiles();
compareExportFile.compareFile();
}
AbstractImportExportJob *TestImportFile::abstractImportExportJob() const
......
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