KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > mavenplugins > testsuite > report > ReportTestCase


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with*
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance wit h
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17  
18 package org.apache.geronimo.mavenplugins.testsuite.report;
19  
20 import java.util.HashMap JavaDoc;
21 import java.util.Map JavaDoc;
22
23 public class ReportTestCase
24 {
25     private String JavaDoc fullClassName;
26
27     private String JavaDoc className;
28
29     private String JavaDoc fullName;
30
31     private String JavaDoc name;
32
33     private float time;
34
35     private Map JavaDoc failure;
36
37     public String JavaDoc getName()
38     {
39         return name;
40     }
41
42     public void setName( String JavaDoc name )
43     {
44         this.name = name;
45     }
46
47     public String JavaDoc getFullClassName()
48     {
49         return fullClassName;
50     }
51
52     public void setFullClassName( String JavaDoc name )
53     {
54         this.fullClassName = name;
55     }
56
57     public String JavaDoc getClassName()
58     {
59         return className;
60     }
61
62     public void setClassName( String JavaDoc name )
63     {
64         this.className = name;
65     }
66
67     public float getTime()
68     {
69         return time;
70     }
71
72     public void setTime( float time )
73     {
74         this.time = time;
75     }
76
77     public Map JavaDoc getFailure()
78     {
79         return failure;
80     }
81
82     public String JavaDoc getFullName()
83     {
84         return fullName;
85     }
86
87     public void setFullName( String JavaDoc fullName )
88     {
89         this.fullName = fullName;
90     }
91
92     public void addFailure( String JavaDoc message, String JavaDoc type )
93     {
94         failure = new HashMap JavaDoc();
95         failure.put( "message", message );
96         failure.put( "type", type );
97     }
98 }
99
Popular Tags