01: /*
02: * ========================================================================
03: *
04: * Copyright 2001-2004 The Apache Software Foundation.
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
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: */
20: package org.apache.cactus.internal.server.runner;
21:
22: /**
23: * XML constants for outputting the JUnit test results in XML.
24: *
25: * Note: This class was copied from the Jakarta Ant project and heavily
26: * adapted for Cactus.
27: *
28: * @version $Id: XMLConstants.java 238991 2004-05-22 11:34:50Z vmassol $
29: *
30: * @see XMLFormatter
31: */
32: public interface XMLConstants {
33: /**
34: * Root element for all test suites.
35: */
36: String TESTSUITES = "testsuites";
37:
38: /**
39: * A single test suite results.
40: */
41: String TESTSUITE = "testsuite";
42:
43: /**
44: * A single testcase element
45: */
46: String TESTCASE = "testcase";
47:
48: /**
49: * The error element (for a test case)
50: */
51: String ERROR = "error";
52:
53: /**
54: * The failure element (for a test case)
55: */
56: String FAILURE = "failure";
57:
58: /**
59: * Name attribute for property, testcase and testsuite elements
60: */
61: String ATTR_NAME = "name";
62:
63: /**
64: * Time attribute for testcase and testsuite elements
65: */
66: String ATTR_TIME = "time";
67:
68: /**
69: * Errors attribute for testsuite elements
70: */
71: String ATTR_ERRORS = "errors";
72:
73: /**
74: * Failures attribute for testsuite elements
75: */
76: String ATTR_FAILURES = "failures";
77:
78: /**
79: * Tests attribute for testsuite elements (number of tests executed)
80: */
81: String ATTR_TESTS = "tests";
82:
83: /**
84: * Type attribute for failure and error elements
85: */
86: String ATTR_TYPE = "type";
87:
88: /**
89: * Message attribute for failure elements (message of the exception)
90: */
91: String ATTR_MESSAGE = "message";
92: }
|