Commit 24876866 authored by Steven Murray's avatar Steven Murray
Browse files

Added the first (useless) version of DummyScheduler

This version of DummyScheduler is all but useless for unit tests
due to its demanding constructor.  I am adding this class to the
cta repository all the same so that more than one developer can
work on it.
parent aac771e5
......@@ -41,6 +41,9 @@ add_library(ctaOStoreSchedulerDB SHARED
target_link_libraries(ctaOStoreSchedulerDB
CTAObjectStore)
add_library (ctaschedulerdummies SHARED
DummyScheduler.cpp)
add_library (ctaschedulerunittests SHARED
mockDB/MockSchedulerDatabase.cpp
mockDB/MockSchedulerDatabaseFactory.cpp
......
This diff is collapsed.
......@@ -20,6 +20,8 @@
#include "scheduler/Scheduler.hpp"
#include <memory>
namespace cta {
/**
......@@ -30,13 +32,20 @@ public:
/**
* Constructor.
*
* @param ns The name server containing the namespace of the archive.
* @param db The scheduler database.
* @param remoteNS The name space of the remote storage system.
*/
Scheduler();
DummyScheduler(
NameServer &ns,
SchedulerDatabase &db,
RemoteNS &remoteNS);
/**
* Destructor.
*/
~Scheduler() throw();
~DummyScheduler() throw();
/**
* Returns all of the queued archive requests. The returned requests are
......
......@@ -142,4 +142,5 @@ target_link_libraries(castortapeserverdaemonunittests
castormediachangerdummies
castormessagesdummies
castorserverdummies
castortapeserverdaemondummies)
castortapeserverdaemondummies
ctaschedulerdummies)
......@@ -45,6 +45,7 @@
#include "smc_struct.h"
#include "nameserver/mockNS/MockNameServer.hpp"
#include "remotens/MockRemoteNS.hpp"
#include "scheduler/DummyScheduler.hpp"
#include "scheduler/mockDB/MockSchedulerDatabase.hpp"
#include "scheduler/MountType.hpp"
......@@ -86,9 +87,6 @@ protected:
~MockRetrieveJob() throw() {
}
};
std::list<std::unique_ptr<cta::RetrieveJob>> m_retrieveJobs;
};
TEST_F(tapeServer, DataTransferSessionGooddayRecall) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment