RobotTestingFramework  2.0.1
Robot Testing Framework
ResultEvent.h
Go to the documentation of this file.
1 /*
2  * Robot Testing Framework
3  *
4  * Copyright (C) 2015-2019 Istituto Italiano di Tecnologia (IIT)
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 
22 #ifndef ROBOTTESTINGFRAMEWORK_RESULTEVENT_H
23 #define ROBOTTESTINGFRAMEWORK_RESULTEVENT_H
24 
27 
28 namespace robottestingframework {
29 
36 {
37 public:
42  test(nullptr)
43  {
44  }
45 
49  virtual ~ResultEvent() = default;
50 
57  {
60  }
61 
66  const Test* getTest()
67  {
68  return test;
69  }
70 
76  {
77  return message;
78  }
79 
80 private:
81  const Test* test;
83 };
84 
85 
90 {
91 public:
93  ResultEvent(test, msg)
94  {
95  }
96 };
97 
98 
103 {
104 public:
106  ResultEvent(test, msg)
107  {
108  }
109 };
110 
115 {
116 public:
118  ResultEvent(test, msg)
119  {
120  }
121 };
122 
127 {
128 public:
130  ResultEvent(test, msg)
131  {
132  }
133 };
134 
139 {
140 public:
142  ResultEvent(test, msg)
143  {
144  }
145 };
146 
151 {
152 public:
154  ResultEvent(test, msg)
155  {
156  }
157 };
158 
159 
164 {
165 public:
167  ResultEvent(test, msg)
168  {
169  }
170 };
171 
172 } // namespace robottestingframework
173 
174 #endif // ROBOTTESTINGFRAMEWORK_TESTRESUTEVENT_H
The ResultEventError class keeps a test error event.
Definition: ResultEvent.h:102
The ResultEventFailure class keeps a failure event.
Definition: ResultEvent.h:114
The ResultEventEndSuite class keeps a test suite ending event.
Definition: ResultEvent.h:163
ResultEventFailure(const Test *test, TestMessage msg)
Definition: ResultEvent.h:117
ResultEventReport(const Test *test, TestMessage msg)
Definition: ResultEvent.h:92
The ResultEventReport class keeps a test report event.
Definition: ResultEvent.h:89
The simplest form of a test unit.
Definition: Test.h:34
ResultEventStartTest(const Test *test, TestMessage msg)
Definition: ResultEvent.h:129
virtual ~ResultEvent()=default
~ResultEvent Destructor
ResultEvent(const Test *test, TestMessage msg)
ResultEvent constructor.
Definition: ResultEvent.h:56
ResultEventEndSuite(const Test *test, TestMessage msg)
Definition: ResultEvent.h:166
A formated message with details.
Definition: TestMessage.h:32
ResultEventStartSuite(const Test *test, TestMessage msg)
Definition: ResultEvent.h:153
ResultEvent()
ResultEvent constructor.
Definition: ResultEvent.h:41
const Test * getTest()
getTest get the test
Definition: ResultEvent.h:66
TestMessage & getMessage()
getMessage get the corresponding message
Definition: ResultEvent.h:75
The ResultEvent class is used by a test collector to collect the result of the tests and the correspo...
Definition: ResultEvent.h:35
The ResultEventStartTest class keeps a test starting event.
Definition: ResultEvent.h:126
ResultEventEndTest(const Test *test, TestMessage msg)
Definition: ResultEvent.h:141
The ResultEventEndTest class keeps a test ending event.
Definition: ResultEvent.h:138
The ResultEventStartSuite class keeps a test suite starting event.
Definition: ResultEvent.h:150
ResultEventError(const Test *test, TestMessage msg)
Definition: ResultEvent.h:105