Commit 9da0c5bd authored by Steven Murray's avatar Steven Murray
Browse files

Added unit test RmcDaemonTest

parent 03a8555c
/******************************************************************************
* castor/tape/rmc/RmcDaemonTest.hpp
*
* This file is part of the Castor project.
* See http://castor.web.cern.ch/castor
*
* Copyright (C) 2003 CERN
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
*
* @author Steven.Murray@cern.ch
*****************************************************************************/
#include "castor/log/DummyLogger.hpp"
#include "castor/tape/rmc/RmcDaemon.hpp"
#include <gtest/gtest.h>
#include <memory>
#include <sstream>
namespace unitTest {
class castor_tape_rmc_RmcDaemonTest: public ::testing::Test {
protected:
virtual void SetUp() {
}
virtual void TearDown() {
}
}; // class castor_tape_rmc_RmcDaemonTest
TEST_F(castor_tape_rmc_RmcDaemonTest, constructor) {
using namespace castor::tape::rmc;
std::ostringstream stdOut;
std::ostringstream stdErr;
castor::log::DummyLogger logger("unittest");
std::auto_ptr<RmcDaemon> daemon;
daemon.reset(new RmcDaemon(stdOut, stdErr, logger));
}
} // namespace unitTests
......@@ -62,7 +62,9 @@ if (STK_API_LIB AND STK_UTL_LIB AND STK_IPC_LIB AND STK_CL_LIB)
../castor/tape/rmc/AcsQueryVolumeCmdTest.cpp
../castor/tape/rmc/AcsTest.cpp
../castor/tape/rmc/Cmd.cpp
../castor/tape/rmc/DebugBuf.cpp)
../castor/tape/rmc/DebugBuf.cpp
../castor/tape/rmc/RmcDaemon.cpp
../castor/tape/rmc/RmcDaemonTest.cpp)
foreach(SRC_FILE ${STK_UNITTEST_SRC_FILES})
set_property(SOURCE ${SRC_FILE}
......
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