[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [tellico/frameworks] src/tests: updatespringerfetchertest
From: Robby Stephenson <robby () periapsis ! org>
Date: 2015-06-01 1:06:51
Message-ID: E1YzEBn-0008KJ-RW () scm ! kde ! org
[Download RAW message or body]
Git commit 3a2b64c892b229de8bf2d38032fce74a1f03881f by Robby Stephenson.
Committed on 31/05/2015 at 20:48.
Pushed by rstephenson into branch 'frameworks'.
updatespringerfetchertest
M +5 -2 src/tests/CMakeLists.txt
M +4 -4 src/tests/springerfetchertest.cpp
http://commits.kde.org/tellico/3a2b64c892b229de8bf2d38032fce74a1f03881f
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 221f2e0..7ebc240 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -577,11 +577,14 @@ add_test(openlibraryfetchertest openlibraryfetchertes=
t)
ecm_mark_as_test(openlibraryfetchertest)
TARGET_LINK_LIBRARIES(openlibraryfetchertest fetcherstest ${TELLICO2_TEST_=
LIBS})
=
-add_executable(springerfetchertest springerfetchertest.cpp abstractfetcher=
test.cpp)
+add_executable(springerfetchertest springerfetchertest.cpp abstractfetcher=
test.cpp
+ ../fetch/springerfetcher.cpp
+ ../fetch/xmlfetcher.cpp
+)
ecm_mark_nongui_executable(springerfetchertest)
add_test(springerfetchertest springerfetchertest)
ecm_mark_as_test(springerfetchertest)
-TARGET_LINK_LIBRARIES(springerfetchertest fetch ${TELLICO_TEST_LIBS})
+TARGET_LINK_LIBRARIES(springerfetchertest fetcherstest ${TELLICO2_TEST_LIB=
S})
=
add_executable(srufetchertest srufetchertest.cpp abstractfetchertest.cpp)
ecm_mark_nongui_executable(srufetchertest)
diff --git a/src/tests/springerfetchertest.cpp b/src/tests/springerfetchert=
est.cpp
index fc1edcb..867b509 100644
--- a/src/tests/springerfetchertest.cpp
+++ b/src/tests/springerfetchertest.cpp
@@ -25,22 +25,22 @@
#undef QT_NO_CAST_FROM_ASCII
=
#include "springerfetchertest.h"
-#include "qtest_kde.h"
=
#include "../fetch/springerfetcher.h"
#include "../entry.h"
#include "../collections/bibtexcollection.h"
#include "../collectionfactory.h"
+#include "../utils/datafileregistry.h"
=
-#include <KStandardDirs>
+#include <QTest>
=
-QTEST_KDEMAIN( SpringerFetcherTest, GUI )
+QTEST_GUILESS_MAIN( SpringerFetcherTest )
=
SpringerFetcherTest::SpringerFetcherTest() : AbstractFetcherTest() {
}
=
void SpringerFetcherTest::initTestCase() {
- KGlobal::dirs()->addResourceDir("appdata", QString::fromLatin1(KDESRCDIR=
) + "/../../xslt/");
+ Tellico::DataFileRegistry::self()->addDataLocation(QFINDTESTDATA("../../=
xslt/springer2tellico.xsl"));
Tellico::RegisterCollection<Tellico::Data::BibtexCollection> registerBib=
tex(Tellico::Data::Collection::Bibtex, "bibtex");
// Tellico::RegisterCollection<Tellico::Data::BookCollection> registerBoo=
k(Tellico::Data::Collection::Book, "book");
=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic