00001 // -*- C++ -*- 00012 /* 00013 * $Log$ 00014 * 00015 */ 00016 00017 #ifndef ExecutionContextServant_cpp 00018 #define ExecutionContextServant_cpp 00019 00020 #include <cppunit/ui/text/TestRunner.h> 00021 #include <cppunit/extensions/HelperMacros.h> 00022 #include <cppunit/TestAssert.h> 00023 00028 namespace ExecutionContextServant 00029 { 00030 class ExecutionContextServantTests 00031 : public CppUnit::TestFixture 00032 { 00033 CPPUNIT_TEST_SUITE(ExecutionContextServantTests); 00034 CPPUNIT_TEST(test_case0); 00035 CPPUNIT_TEST_SUITE_END(); 00036 00037 private: 00038 00039 public: 00040 00044 ExecutionContextServantTests() 00045 { 00046 } 00047 00051 ~ExecutionContextServantTests() 00052 { 00053 } 00054 00058 virtual void setUp() 00059 { 00060 } 00061 00065 virtual void tearDown() 00066 { 00067 } 00068 00069 /* test case */ 00070 void test_case0() 00071 { 00072 CPPUNIT_FAIL("Automatic failue."); 00073 } 00074 }; 00075 }; // namespace ExecutionContextServant 00076 00077 /* 00078 * Register test suite 00079 */ 00080 CPPUNIT_TEST_SUITE_REGISTRATION(ExecutionContextServant::ExecutionContextServantTests); 00081 00082 #ifdef LOCAL_MAIN 00083 int main(int argc, char* argv[]) 00084 { 00085 CppUnit::TextUi::TestRunner runner; 00086 runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest()); 00087 CppUnit::Outputter* outputter = 00088 new CppUnit::TextOutputter(&runner.result(), std::cout); 00089 runner.setOutputter(outputter); 00090 bool retcode = runner.run(); 00091 return !retcode; 00092 } 00093 #endif // MAIN 00094 #endif // ExecutionContextServant_cpp