• Classes
  • Modules
  • Namespaces
  • Files
  • Related Pages
  • File List
  • File Members

testAcsDaemonUtils.h

Go to the documentation of this file.
00001 #ifndef TEST_ACS_DAEMON_UTILS_H
00002 #define TEST_ACS_DAEMON_UTILS_H
00003 /*******************************************************************************
00004 * ALMA - Atacama Large Millimiter Array
00005 * Copyright (c) European Southern Observatory, 2013 
00006 * 
00007 * This library is free software; you can redistribute it and/or
00008 * modify it under the terms of the GNU Lesser General Public
00009 * License as published by the Free Software Foundation; either
00010 * version 2.1 of the License, or (at your option) any later version.
00011 * 
00012 * This library is distributed in the hope that it will be useful,
00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 * Lesser General Public License for more details.
00016 * 
00017 * You should have received a copy of the GNU Lesser General Public
00018 * License along with this library; if not, write to the Free Software
00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00020 *
00021 *
00022 * who       when      what
00023 * --------  --------  ----------------------------------------------
00024 * almadev  2013-05-23  created
00025 */
00026 
00027 /************************************************************************
00028  *
00029  *----------------------------------------------------------------------
00030  */
00031 
00032 #ifndef __cplusplus
00033 #error This is a C++ include file and cannot be used from plain C
00034 #endif
00035 
00036 #include <cppunit/TestFixture.h>
00037 #include <cppunit/extensions/HelperMacros.h>
00038 #include "acsDaemonUtils.h"
00039 
00040 using namespace std;
00041 
00042 class TestAcsDaemonUtils : public CPPUNIT_NS :: TestFixture
00043 {
00044         CPPUNIT_TEST_SUITE (TestAcsDaemonUtils);
00045         CPPUNIT_TEST (testLogDirectory);
00046         CPPUNIT_TEST (testLogDirectoryForPlainContainer);
00047         CPPUNIT_TEST (testLogDirectoryForHierarchicalContainer);
00048         CPPUNIT_TEST (testTimestamp);
00049         CPPUNIT_TEST (testSimpleContainerName);
00050         CPPUNIT_TEST (testWritePermission);
00051         CPPUNIT_TEST (testWritePermissionForContainer);
00052         CPPUNIT_TEST_SUITE_END ();
00053 
00054 public:
00055         void setUp (void);
00056         void tearDown (void);
00057 
00058 protected:
00059         void testLogDirectory(void);
00060         void testLogDirectoryForPlainContainer(void);
00061         void testLogDirectoryForHierarchicalContainer(void);
00062         void testTimestamp(void);
00063         void testSimpleContainerName(void);
00064         void testWritePermission();
00065         void testWritePermissionForContainer();
00066 
00067 private:
00068         AcsDaemonUtils* daemonUtil_mp;
00069 
00070 }
00071 
00072 #endif 
00073 ;

Generated on Mon May 4 2015 08:27:44 for ACS-2015.4 C++ API by  doxygen 1.7.0