Main Page
Namespaces
Classes
Files
File List
File Members
src
lib
doil
utils
omniidl_be
tests
unitTest
ExecutionContextServant
ExecutionContextServantTests.cpp
Go to the documentation of this file.
1
// -*- C++ -*-
12
/*
13
* $Log$
14
*
15
*/
16
17
#ifndef ExecutionContextServant_cpp
18
#define ExecutionContextServant_cpp
19
20
#include <cppunit/ui/text/TestRunner.h>
21
#include <cppunit/extensions/HelperMacros.h>
22
#include <cppunit/TestAssert.h>
23
28
namespace
ExecutionContextServant
29
{
30
class
ExecutionContextServantTests
31
:
public
CppUnit::TestFixture
32
{
33
CPPUNIT_TEST_SUITE
(
ExecutionContextServantTests
);
34
CPPUNIT_TEST
(
test_case0
);
35
CPPUNIT_TEST_SUITE_END
();
36
37
private
:
38
39
public
:
40
44
ExecutionContextServantTests
()
45
{
46
}
47
51
~ExecutionContextServantTests
()
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 ExecutionContextServant
76
77
/*
78
* Register test suite
79
*/
80
CPPUNIT_TEST_SUITE_REGISTRATION
(
ExecutionContextServant::ExecutionContextServantTests
);
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 // ExecutionContextServant_cpp
ExecutionContextServant::ExecutionContextServantTests
Definition:
ExecutionContextServantTests.cpp:30
main
int main(int argc, char **argv)
Definition:
AutoTestInComp.cpp:74
ExecutionContextServant::ExecutionContextServantTests::CPPUNIT_TEST_SUITE_END
CPPUNIT_TEST_SUITE_END()
ExecutionContextServant
Definition:
ExecutionContextServantTests.cpp:28
ExecutionContextServant::ExecutionContextServantTests::CPPUNIT_TEST_SUITE
CPPUNIT_TEST_SUITE(ExecutionContextServantTests)
ExecutionContextServant::ExecutionContextServantTests::test_case0
void test_case0()
Definition:
ExecutionContextServantTests.cpp:70
CPPUNIT_TEST_SUITE_REGISTRATION
CPPUNIT_TEST_SUITE_REGISTRATION(ExecutionContextServant::ExecutionContextServantTests)
ExecutionContextServant::ExecutionContextServantTests::~ExecutionContextServantTests
~ExecutionContextServantTests()
Destructor.
Definition:
ExecutionContextServantTests.cpp:51
ExecutionContextServant::ExecutionContextServantTests::tearDown
virtual void tearDown()
Test finalization.
Definition:
ExecutionContextServantTests.cpp:65
ExecutionContextServant::ExecutionContextServantTests::ExecutionContextServantTests
ExecutionContextServantTests()
Constructor.
Definition:
ExecutionContextServantTests.cpp:44
ExecutionContextServant::ExecutionContextServantTests::CPPUNIT_TEST
CPPUNIT_TEST(test_case0)
AddRemoveRTCTest.retcode
retcode
Definition:
AddRemoveRTCTest.py:73
ExecutionContextServant::ExecutionContextServantTests::setUp
virtual void setUp()
Test initialization.
Definition:
ExecutionContextServantTests.cpp:58
openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:52