01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with*
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance wit h
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: */package org.apache.geronimo.mavenplugins.testsuite.report;
17:
18: import java.util.HashMap;
19: import java.util.Map;
20:
21: public class ReportTestCase {
22: private String fullClassName;
23:
24: private String className;
25:
26: private String fullName;
27:
28: private String name;
29:
30: private float time;
31:
32: private Map failure;
33:
34: public String getName() {
35: return name;
36: }
37:
38: public void setName(String name) {
39: this .name = name;
40: }
41:
42: public String getFullClassName() {
43: return fullClassName;
44: }
45:
46: public void setFullClassName(String name) {
47: this .fullClassName = name;
48: }
49:
50: public String getClassName() {
51: return className;
52: }
53:
54: public void setClassName(String name) {
55: this .className = name;
56: }
57:
58: public float getTime() {
59: return time;
60: }
61:
62: public void setTime(float time) {
63: this .time = time;
64: }
65:
66: public Map getFailure() {
67: return failure;
68: }
69:
70: public String getFullName() {
71: return fullName;
72: }
73:
74: public void setFullName(String fullName) {
75: this .fullName = fullName;
76: }
77:
78: public void addFailure(String message, String type) {
79: failure = new HashMap();
80: failure.put("message", message);
81: failure.put("type", type);
82: }
83: }
|