3
* $Id: sourceheader 511311 2006-02-19 14:51:05Z trueg $
5
* This file is part of the Nepomuk KDE project.
6
* Copyright (C) 2006-2007 Sebastian Trueg <trueg@kde.org>
8
* This library is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU Lesser General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
12
* See the file "COPYING.LIB" for the exact licensing terms.
17
#include <Nepomuk/Resource>
18
#include <Nepomuk/ResourceManager>
20
#include <Soprano/Soprano>
24
void TestBase::initTestCase()
26
m_tmpDir = new KTempDir();
27
const Soprano::Backend* backend = Soprano::PluginManager::instance()->discoverBackendByName("virtuoso");
28
m_model = backend->createModel( Soprano::BackendSettings() << Soprano::BackendSetting(Soprano::BackendOptionStorageDir, m_tmpDir->name() ));
29
Nepomuk::ResourceManager::instance()->setOverrideMainModel( m_model );
33
void TestBase::cleanupTestCase()
35
Nepomuk::ResourceManager::instance()->setOverrideMainModel( 0 );
43
m_model->removeAllStatements();
47
void TestBase::cleanup()
51
#include "testbase.moc"