Skip to content
Snippets Groups Projects
ISISDataArchiveTest.h 826 B
Newer Older
#ifndef ISISDATAARCHIVETEST_H_
#define ISISDATAARCHIVETEST_H_

#include <fstream>
#include <cxxtest/TestSuite.h>

#include "MantidDataHandling/ISISDataArchive.h"
#include "MantidAPI/ArchiveSearchFactory.h"

using namespace Mantid::DataHandling;
using namespace Mantid::API;

class ISISDataArchiveTest : public CxxTest::TestSuite
{
public: 

  {
    ISISDataArchive arch;
    std::string path = arch.getPath("hrpd273");
    std::cout << "(hrp273)= " << path << std::endl;
    TS_ASSERT_EQUALS(path.substr(path.size()-18,10),"cycle_98_0");
    path = arch.getPath("hrpds70");
    TS_ASSERT(path.empty());
  }

    boost::shared_ptr<IArchiveSearch> arch = ArchiveSearchFactory::Instance().create("ISISDataSearch");