View Javadoc

1   package org.apache.maven.plugins.surefire.report;
2   
3   /*
4    * Copyright 2001-2005 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  import java.util.HashMap;
20  import java.util.Map;
21  
22  public class ReportTestCase
23  {
24      private String fullClassName;
25  
26      private String className;
27  
28      private String fullName;
29  
30      private String name;
31  
32      private float time;
33  
34      private Map failure;
35  
36      public String getName()
37      {
38          return name;
39      }
40  
41      public void setName( String name )
42      {
43          this.name = name;
44      }
45  
46      public String getFullClassName()
47      {
48          return fullClassName;
49      }
50  
51      public void setFullClassName( String name )
52      {
53          this.fullClassName = name;
54      }
55  
56      public String getClassName()
57      {
58          return className;
59      }
60  
61      public void setClassName( String name )
62      {
63          this.className = name;
64      }
65  
66      public float getTime()
67      {
68          return time;
69      }
70  
71      public void setTime( float time )
72      {
73          this.time = time;
74      }
75  
76      public Map getFailure()
77      {
78          return failure;
79      }
80  
81      public String getFullName()
82      {
83          return fullName;
84      }
85  
86      public void setFullName( String fullName )
87      {
88          this.fullName = fullName;
89      }
90  
91      public void addFailure( String message, String type )
92      {
93          failure = new HashMap();
94          failure.put( "message", message );
95          failure.put( "type", type );
96      }
97  }