MonitoringServantTests.cpp
Go to the documentation of this file.
1 // -*- C++ -*-
12 /*
13  * $Log$
14  *
15  */
16 
17 #ifndef MonitoringServant_cpp
18 #define MonitoringServant_cpp
19 
20 #include <iostream>
21 #include <cppunit/ui/text/TestRunner.h>
22 #include <cppunit/extensions/HelperMacros.h>
23 #include <cppunit/TestAssert.h>
24 #include <doil/ImplBase.h>
25 
36 {
38  : public CppUnit::TestFixture
39  {
43 
44  private:
45 
46  public:
47 
52  {
53  }
54 
59  {
60  }
61 
65  virtual void setUp()
66  {
67  }
68 
72  virtual void tearDown()
73  {
74  }
75 
76  /* test case */
77  void test_case0()
78  {
79  CPPUNIT_FAIL("Automatic failue.");
80  }
81  };
82 }; // namespace MonitoringServant
83 
84 /*
85  * Register test suite
86  */
88 
89 #ifdef LOCAL_MAIN
90 int main(int argc, char* argv[])
91 {
92  CppUnit::TextUi::TestRunner runner;
93  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
94  CppUnit::Outputter* outputter =
95  new CppUnit::TextOutputter(&runner.result(), std::cout);
96  runner.setOutputter(outputter);
97  bool retcode = runner.run();
98  return !retcode;
99 }
100 #endif // MAIN
101 #endif // MonitoringServant_cpp
int main(int argc, char **argv)
virtual void tearDown()
Test finalization.
doil implementation base class
CPPUNIT_TEST_SUITE(MonitoringServantTests)
virtual void setUp()
Test initialization.
CPPUNIT_TEST_SUITE_REGISTRATION(MonitoringServant::MonitoringServantTests)


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:25:58