Public Member Functions | Private Member Functions | Private Attributes | List of all members
NdmcClientServiceTest Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-04-10/NovaDAQMonitorClient/cxx/unittest/NdmcClientServiceTest.h"

Inheritance diagram for NdmcClientServiceTest:

Public Member Functions

void setUp ()
 
void tearDown ()
 
void testInstance ()
 

Private Member Functions

 CPPUNIT_TEST_SUITE (NdmcClientServiceTest)
 
 CPPUNIT_TEST (testInstance)
 
 CPPUNIT_TEST_SUITE_END ()
 

Private Attributes

std::string _configFile
 

Detailed Description

Definition at line 9 of file NdmcClientServiceTest.h.

Member Function Documentation

NdmcClientServiceTest::CPPUNIT_TEST ( testInstance  )
private
NdmcClientServiceTest::CPPUNIT_TEST_SUITE ( NdmcClientServiceTest  )
private

The following set of macros construct a TestSuite of name NdmcClientServiceTest to test the NdmcClientService methods.

Author
Susan Kasahara
Date
May 6 2010 (Creation)
NdmcClientServiceTest::CPPUNIT_TEST_SUITE_END ( )
private
void NdmcClientServiceTest::setUp ( )

A public method to setUp the environment for the test. This will be invoked before every test in the fixture to get a fresh start.

Definition at line 16 of file NdmcClientServiceTest.cpp.

References getConfigFullFilePathName().

16  {
17  _configFile = getConfigFullFilePathName("unittest/gmond.conf");
18 }
NDMC_NAMESPACE_BEGIN std::string getConfigFullFilePathName(std::string configFile)
void NdmcClientServiceTest::tearDown ( )

A public method to tearDown the environment for the test. This will be invoked after every test in the fixture to clean up allocated memory.

Definition at line 23 of file NdmcClientServiceTest.cpp.

References om::cout.

23  {
24  std::cout.flush();
25 }
OStream cout
Definition: OStream.cxx:6
void NdmcClientServiceTest::testInstance ( )

A test method to test that NdmcClient::instance() works correctly.

Definition at line 31 of file NdmcClientServiceTest.cpp.

References NdmcClientService::instance(), NdmcClientService::isEnabled(), and NdmcClientService::setCONFIGFILE().

31  {
32 
34  NdmcClientService& daqmonitorclientservice = NdmcClientService::instance();
35  CPPUNIT_ASSERT(daqmonitorclientservice.isEnabled() == true);
36 
37 }
static void setCONFIGFILE(std::string configfile)
bool isEnabled() const
static NdmcClientService & instance()

Member Data Documentation

std::string NdmcClientServiceTest::_configFile
private

Definition at line 31 of file NdmcClientServiceTest.h.


The documentation for this class was generated from the following files: