TestListener.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
28 //----------------------------------------------------------------------
29 #ifndef ICL_CORE_TESTSUITE_TEST_LISTENER_H_INCLUDED
30 #define ICL_CORE_TESTSUITE_TEST_LISTENER_H_INCLUDED
31 
32 #include <cppunit/Test.h>
33 #include <cppunit/TestFailure.h>
34 #include <cppunit/TestListener.h>
35 
36 namespace icl_core {
37 
41 class TestListener : public CPPUNIT_NS::TestListener
42 {
43 public:
44  virtual ~TestListener() {}
45 
46  virtual void startTest(CPPUNIT_NS::Test *test);
47  virtual void addFailure(const CPPUNIT_NS::TestFailure& failure);
48  virtual void endTest(CPPUNIT_NS::Test *test);
49 
50  virtual void startSuite(CPPUNIT_NS::Test *test);
51  virtual void endSuite(CPPUNIT_NS::Test *test);
52 
53 private:
54  bool m_success;
55 };
56 
57 }
58 
59 #endif
virtual void startTest(CPPUNIT_NS::Test *test)
virtual void startSuite(CPPUNIT_NS::Test *test)
virtual void endTest(CPPUNIT_NS::Test *test)
virtual void endSuite(CPPUNIT_NS::Test *test)
virtual void addFailure(const CPPUNIT_NS::TestFailure &failure)


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58