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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:53