MonitoringServantTests.cpp
Go to the documentation of this file.
00001 // -*- C++ -*-
00012 /*
00013  * $Log$
00014  *
00015  */
00016 
00017 #ifndef MonitoringServant_cpp
00018 #define MonitoringServant_cpp
00019 
00020 #include <iostream>
00021 #include <cppunit/ui/text/TestRunner.h>
00022 #include <cppunit/extensions/HelperMacros.h>
00023 #include <cppunit/TestAssert.h>
00024 #include <doil/ImplBase.h>
00025 
00035 namespace MonitoringServant
00036 {
00037   class MonitoringServantTests
00038    : public CppUnit::TestFixture
00039   {
00040     CPPUNIT_TEST_SUITE(MonitoringServantTests);
00041     CPPUNIT_TEST(test_case0);
00042     CPPUNIT_TEST_SUITE_END();
00043   
00044   private:
00045   
00046   public:
00047   
00051     MonitoringServantTests()
00052     {
00053     }
00054     
00058     ~MonitoringServantTests()
00059     {
00060     }
00061   
00065     virtual void setUp()
00066     {
00067     }
00068     
00072     virtual void tearDown()
00073     { 
00074     }
00075   
00076     /* test case */
00077     void test_case0()
00078     {
00079       CPPUNIT_FAIL("Automatic failue.");
00080     }
00081   };
00082 }; // namespace MonitoringServant
00083 
00084 /*
00085  * Register test suite
00086  */
00087 CPPUNIT_TEST_SUITE_REGISTRATION(MonitoringServant::MonitoringServantTests);
00088 
00089 #ifdef LOCAL_MAIN
00090 int main(int argc, char* argv[])
00091 {
00092     CppUnit::TextUi::TestRunner runner;
00093     runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
00094     CppUnit::Outputter* outputter = 
00095       new CppUnit::TextOutputter(&runner.result(), std::cout);
00096     runner.setOutputter(outputter);
00097     bool retcode = runner.run();
00098     return !retcode;
00099 }
00100 #endif // MAIN
00101 #endif // MonitoringServant_cpp


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:38