/**************************************************************************************** * Copyright (c) 2009 Manuel Campomanes * * Copyright (c) 2009 Nathan Sala * * * * 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, see . * ****************************************************************************************/ #include "TestSimilarArtistsEngine.h" #include "context/engines/similarartists/SimilarArtistsEngine.h" #include "core/support/Components.h" #include "EngineController.h" #include #include QTEST_KDEMAIN_CORE( TestSimilarArtistsEngine ) TestSimilarArtistsEngine::TestSimilarArtistsEngine(QObject* parent) : QObject(parent) { } void TestSimilarArtistsEngine::initTestCase() { //apparently the engine controller is needed somewhere, or we will get a crash... EngineController *controller = new EngineController(); Amarok::Components::setEngineController( controller ); bool invoked = QMetaObject::invokeMethod( controller, "initializePhonon", Qt::DirectConnection ); Q_ASSERT( invoked ); //Write here initializations QList args; m_engine = new SimilarArtistsEngine(0, args); } void TestSimilarArtistsEngine::testDataEngineMethod() { //Tests on the engine QVERIFY(1 == 1); } void TestSimilarArtistsEngine::cleanupTestCase() { //Write here cleaning delete m_engine; } #include "moc_TestSimilarArtistsEngine.cpp"