Salome HOME
Merge remote-tracking branch 'origin/master' into BR_LAND_COVER_MAP
[modules/hydro.git] / src / HYDRO_tests / TestLib_Listener.cxx
1
2 /**
3   @file
4   \brief Implementation of the custom listener printing the time of test execution
5 */
6
7 #include <TestLib_Listener.h>
8 #include <cppunit/Test.h>
9 #include <iostream>
10
11 /**
12   \brief Constructor
13 */
14 TestLib_Listener::TestLib_Listener()
15 {
16 }
17
18 /**
19   \brief Destructor
20 */
21 TestLib_Listener::~TestLib_Listener()
22 {
23 }
24
25 /**
26   \brief Clear the internal state of the listener
27 */
28 void TestLib_Listener::Clear()
29 {
30 }
31
32 /**
33   Handler for test start
34   @param theTest the started tests
35 */
36 void TestLib_Listener::startTest( CppUnit::Test* theTest )
37 {
38   std::string aName;
39   if( theTest )
40     aName = theTest->getName();
41
42   std::cout << aName << "...";
43 }
44
45 /**
46   Handler for test finish
47   @param theTest the finished tests
48 */
49 void TestLib_Listener::endTest( CppUnit::Test* theTest )
50 {
51   std::cout << std::endl;
52 }
53
54 /**
55   Handler for test suite start
56   @param theTest the started test suite
57 */
58 void TestLib_Listener::startSuite( CppUnit::Test* theTest )
59 {
60 }
61
62 /**
63   Handler for test suite finish
64   @param theTest the finished test suite
65 */
66 void TestLib_Listener::endSuite( CppUnit::Test* theTest )
67 {
68 }
69
70 /**
71   Handler for test failure
72   @param theFailure the failure information
73 */
74 void TestLib_Listener::addFailure( const CppUnit::TestFailure& theFailure )
75 {
76 }
77