1 /*
2 * ========================================================================
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one or more
5 * contributor license agreements. See the NOTICE file distributed with
6 * this work for additional information regarding copyright ownership.
7 * The ASF licenses this file to You under the Apache License, Version 2.0
8 * (the "License"); you may not use this file except in compliance with
9 * the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 * ========================================================================
20 */
21 package org.apache.cactus.internal.server.runner;
22
23 /**
24 * XML constants for outputting the JUnit test results in XML.
25 *
26 * Note: This class was copied from the Jakarta Ant project and heavily
27 * adapted for Cactus.
28 *
29 * @version $Id: XMLConstants.java 238991 2004-05-22 11:34:50Z vmassol $
30 *
31 * @see XMLFormatter
32 */
33 public interface XMLConstants
34 {
35 /**
36 * Root element for all test suites.
37 */
38 String TESTSUITES = "testsuites";
39
40 /**
41 * A single test suite results.
42 */
43 String TESTSUITE = "testsuite";
44
45 /**
46 * A single testcase element.
47 */
48 String TESTCASE = "testcase";
49
50 /**
51 * The error element (for a test case).
52 */
53 String ERROR = "error";
54
55 /**
56 * The failure element (for a test case).
57 */
58 String FAILURE = "failure";
59
60 /**
61 * Name attribute for property, testcase and testsuite elements.
62 */
63 String ATTR_NAME = "name";
64
65 /**
66 * Time attribute for testcase and testsuite elements.
67 */
68 String ATTR_TIME = "time";
69
70 /**
71 * Errors attribute for testsuite elements.
72 */
73 String ATTR_ERRORS = "errors";
74
75 /**
76 * Failures attribute for testsuite elements.
77 */
78 String ATTR_FAILURES = "failures";
79
80 /**
81 * Tests attribute for testsuite elements (number of tests executed).
82 */
83 String ATTR_TESTS = "tests";
84
85 /**
86 * Type attribute for failure and error elements.
87 */
88 String ATTR_TYPE = "type";
89
90 /**
91 * Message attribute for failure elements (message of the exception).
92 */
93 String ATTR_MESSAGE = "message";
94 }