Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
tests
testNDCMain.cpp
Go to the documentation of this file.
1
#include <vector>
2
#include "cppunit/TestRegistry.h"
3
#include "cppunit/TextTestResult.h"
4
#include "cppunit/Test.h"
5
#include "cppunit/TestSuite.h"
6
#include "
log4cpp/NDC.hh
"
7
#include "
NDCTest.hh
"
8
9
int
main
(
int
argc,
char
** argv) {
10
NDCTest<log4cpp::NDC>
nDCTest(
"NDCTest<NDC>"
);
11
12
CppUnit::TextTestResult result;
13
CppUnit::TestSuite suite;
14
15
nDCTest.
registerTests
(&suite);
16
17
std::vector<CppUnit::Test*> tests = CppUnit::TestRegistry::getRegistry().getAllTests();
18
for
(std::vector<CppUnit::Test*>::iterator i = tests.begin(); i != tests.end(); i++) {
19
(*i)->run(&result);
20
}
21
22
cout << result;
23
24
return
0;
25
}
NDCTest
Definition:
NDCTest.hh:10
NDC.hh
NDCTest.hh
main
int main(int argc, char **argv)
Definition:
testNDCMain.cpp:9
NDCTest::registerTests
virtual void registerTests(CppUnit::TestSuite *suite)
Definition:
NDCTest.hh:21
log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:10:00