KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cactus > internal > server > runner > XMLConstants


1 /*
2  * ========================================================================
3  *
4  * Copyright 2001-2004 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  */

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,v 1.1 2004/05/22 11:34:46 vmassol Exp $
29  *
30  * @see XMLFormatter
31  */

32 public interface XMLConstants
33 {
34     /**
35      * Root element for all test suites.
36      */

37     String JavaDoc TESTSUITES = "testsuites";
38
39     /**
40      * A single test suite results.
41      */

42     String JavaDoc TESTSUITE = "testsuite";
43
44     /**
45      * A single testcase element
46      */

47     String JavaDoc TESTCASE = "testcase";
48
49     /**
50      * The error element (for a test case)
51      */

52     String JavaDoc ERROR = "error";
53
54     /**
55      * The failure element (for a test case)
56      */

57     String JavaDoc FAILURE = "failure";
58
59     /**
60      * Name attribute for property, testcase and testsuite elements
61      */

62     String JavaDoc ATTR_NAME = "name";
63
64     /**
65      * Time attribute for testcase and testsuite elements
66      */

67     String JavaDoc ATTR_TIME = "time";
68
69     /**
70      * Errors attribute for testsuite elements
71      */

72     String JavaDoc ATTR_ERRORS = "errors";
73
74     /**
75      * Failures attribute for testsuite elements
76      */

77     String JavaDoc ATTR_FAILURES = "failures";
78
79     /**
80      * Tests attribute for testsuite elements (number of tests executed)
81      */

82     String JavaDoc ATTR_TESTS = "tests";
83
84     /**
85      * Type attribute for failure and error elements
86      */

87     String JavaDoc ATTR_TYPE = "type";
88
89     /**
90      * Message attribute for failure elements (message of the exception)
91      */

92     String JavaDoc ATTR_MESSAGE = "message";
93 }
94
Popular Tags