1 | |
package org.apache.maven.plugins.surefire.report; |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
import java.util.HashMap; |
23 | |
import java.util.Map; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | 41 | public class ReportTestCase |
29 | |
{ |
30 | |
private String fullClassName; |
31 | |
|
32 | |
private String className; |
33 | |
|
34 | |
private String fullName; |
35 | |
|
36 | |
private String name; |
37 | |
|
38 | |
private float time; |
39 | |
|
40 | |
private Map<String, Object> failure; |
41 | |
|
42 | |
public String getName() |
43 | |
{ |
44 | 34 | return name; |
45 | |
} |
46 | |
|
47 | |
public void setName( String name ) |
48 | |
{ |
49 | 34 | this.name = name; |
50 | 34 | } |
51 | |
|
52 | |
public String getFullClassName() |
53 | |
{ |
54 | 0 | return fullClassName; |
55 | |
} |
56 | |
|
57 | |
public void setFullClassName( String name ) |
58 | |
{ |
59 | 33 | this.fullClassName = name; |
60 | 33 | } |
61 | |
|
62 | |
public String getClassName() |
63 | |
{ |
64 | 0 | return className; |
65 | |
} |
66 | |
|
67 | |
public void setClassName( String name ) |
68 | |
{ |
69 | 33 | this.className = name; |
70 | 33 | } |
71 | |
|
72 | |
public float getTime() |
73 | |
{ |
74 | 1 | return time; |
75 | |
} |
76 | |
|
77 | |
public void setTime( float time ) |
78 | |
{ |
79 | 34 | this.time = time; |
80 | 34 | } |
81 | |
|
82 | |
public Map<String, Object> getFailure() |
83 | |
{ |
84 | 19 | return failure; |
85 | |
} |
86 | |
|
87 | |
public String getFullName() |
88 | |
{ |
89 | 15 | return fullName; |
90 | |
} |
91 | |
|
92 | |
public void setFullName( String fullName ) |
93 | |
{ |
94 | 34 | this.fullName = fullName; |
95 | 34 | } |
96 | |
|
97 | |
public void addFailure( String message, String type ) |
98 | |
{ |
99 | 17 | failure = new HashMap<String, Object>(); |
100 | 17 | failure.put( "message", message ); |
101 | 17 | failure.put( "type", type ); |
102 | 17 | } |
103 | |
|
104 | |
|
105 | |
|
106 | |
|
107 | |
public String toString() |
108 | |
{ |
109 | 0 | return fullName; |
110 | |
} |
111 | |
} |