1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
/////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
// Distributable under the terms of either the Apache License (Version 2.0)
// or the GNU Lesser General Public License.
/////////////////////////////////////////////////////////////////////////////
#include "TestInc.h"
#include "LuceneGlobalFixture.h"
#include "TestUtils.h"
#include "TestPoint.h"
#include "FileUtils.h"
namespace Lucene {
void LuceneGlobalFixture::SetUp() {
FileUtils::removeDirectory(getTempDir());
FileUtils::createDirectory(getTempDir());
TestPoint::enableTestPoints();
}
void LuceneGlobalFixture::TearDown() {
FileUtils::removeDirectory(getTempDir());
Lucene::CycleCheck::dumpRefs();
}
}
|