1   /*
2    * The MIT License
3    *
4    * Copyright (c) <2010> <tap4j>
5    * 
6    * Permission is hereby granted, free of charge, to any person obtaining a copy
7    * of this software and associated documentation files (the "Software"), to deal
8    * in the Software without restriction, including without limitation the rights
9    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10   * copies of the Software, and to permit persons to whom the Software is
11   * furnished to do so, subject to the following conditions:
12   * 
13   * The above copyright notice and this permission notice shall be included in
14   * all copies or substantial portions of the Software.
15   * 
16   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22   * THE SOFTWARE.
23   */
24  package org.tap4j.ext.junit;
25  
26  import org.junit.runner.Description;
27  
28  /**
29   * JUnit test data.
30   * 
31   * @since 1.4.3
32   */
33  public class JUnitTestData {
34  
35      private Description description;
36  
37      private Boolean ignored;
38  
39      private Boolean failed;
40  
41      private String failMessage;
42  
43      private String failTrace;
44  
45      private Throwable failException;
46  
47      public JUnitTestData(Boolean ignored, Boolean failed) {
48          this.ignored = ignored;
49          this.failed = failed;
50      }
51  
52      public Description getDescription() {
53          return description;
54      }
55  
56      public void setDescription(Description description) {
57          this.description = description;
58      }
59  
60      public Boolean isIgnored() {
61          return ignored;
62      }
63  
64      public void setIgnored(Boolean ignored) {
65          this.ignored = ignored;
66      }
67  
68      public Boolean isFailed() {
69          return failed;
70      }
71  
72      public void setFailed(Boolean failed) {
73          this.failed = failed;
74      }
75  
76      public String getFailMessage() {
77          return failMessage;
78      }
79  
80      public void setFailMessage(String failMessage) {
81          this.failMessage = failMessage;
82      }
83  
84      public String getFailTrace() {
85          return failTrace;
86      }
87  
88      public void setFailTrace(String failTrace) {
89          this.failTrace = failTrace;
90      }
91  
92      public Throwable getFailException() {
93          return failException;
94      }
95  
96      public void setFailException(Throwable failException) {
97          this.failException = failException;
98      }
99  }