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 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 return name;
45 }
46
47 public void setName( String name )
48 {
49 this.name = name;
50 }
51
52 public String getFullClassName()
53 {
54 return fullClassName;
55 }
56
57 public void setFullClassName( String name )
58 {
59 this.fullClassName = name;
60 }
61
62 public String getClassName()
63 {
64 return className;
65 }
66
67 public void setClassName( String name )
68 {
69 this.className = name;
70 }
71
72 public float getTime()
73 {
74 return time;
75 }
76
77 public void setTime( float time )
78 {
79 this.time = time;
80 }
81
82 public Map<String, Object> getFailure()
83 {
84 return failure;
85 }
86
87 public String getFullName()
88 {
89 return fullName;
90 }
91
92 public void setFullName( String fullName )
93 {
94 this.fullName = fullName;
95 }
96
97 public void addFailure( String message, String type )
98 {
99 failure = new HashMap<String, Object>();
100 failure.put( "message", message );
101 failure.put( "type", type );
102 }
103
104
105
106
107 public String toString()
108 {
109 return fullName;
110 }
111 }