KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tools > ant > taskdefs > optional > junit > XMLConstants


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 with
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.tools.ant.taskdefs.optional.junit;
19
20 /**
21  * <p> Interface groups XML constants.
22  * Interface that groups all constants used throughout the <tt>XML</tt>
23  * documents that are generated by the <tt>XMLJUnitResultFormatter</tt>.
24  * <p>
25  * As of now the DTD is:
26  * <code><pre>
27  * &lt;!ELEMENT testsuites (testsuite*)&gt;
28  *
29  * &lt;!ELEMENT testsuite (properties, testcase*,
30  * failure?, error?,
31  * system-out?, system-err?)&gt;
32  * &lt;!ATTLIST testsuite name CDATA #REQUIRED&gt;
33  * &lt;!ATTLIST testsuite tests CDATA #REQUIRED&gt;
34  * &lt;!ATTLIST testsuite failures CDATA #REQUIRED&gt;
35  * &lt;!ATTLIST testsuite errors CDATA #REQUIRED&gt;
36  * &lt;!ATTLIST testsuite time CDATA #REQUIRED&gt;
37  * &lt;!ATTLIST testsuite package CDATA #IMPLIED&gt;
38  * &lt;!ATTLIST testsuite id CDATA #IMPLIED&gt;
39  *
40  *
41  * &lt;!ELEMENT properties (property*)&gt;
42  *
43  * &lt;!ELEMENT property EMPTY&gt;
44  * &lt;!ATTLIST property name CDATA #REQUIRED&gt;
45  * &lt;!ATTLIST property value CDATA #REQUIRED&gt;
46  *
47  * &lt;!ELEMENT testcase (failure?, error?)&gt;
48  * &lt;!ATTLIST testcase name CDATA #REQUIRED&gt;
49  * &lt;!ATTLIST testcase classname CDATA #IMPLIED&gt;
50  * &lt;!ATTLIST testcase time CDATA #REQUIRED&gt;
51  *
52  * &lt;!ELEMENT failure (#PCDATA)&gt;
53  * &lt;!ATTLIST failure message CDATA #IMPLIED&gt;
54  * &lt;!ATTLIST failure type CDATA #REQUIRED&gt;
55  *
56  * &lt;!ELEMENT error (#PCDATA)&gt;
57  * &lt;!ATTLIST error message CDATA #IMPLIED&gt;
58  * &lt;!ATTLIST error type CDATA #REQUIRED&gt;
59  *
60  * &lt;!ELEMENT system-err (#PCDATA)&gt;
61  *
62  * &lt;!ELEMENT system-out (#PCDATA)&gt;
63  *
64  * </pre></code>
65  * @see XMLJUnitResultFormatter
66  * @see XMLResultAggregator
67  */

68 public interface XMLConstants {
69     /** the testsuites element for the aggregate document */
70     String JavaDoc TESTSUITES = "testsuites";
71
72     /** the testsuite element */
73     String JavaDoc TESTSUITE = "testsuite";
74
75     /** the testcase element */
76     String JavaDoc TESTCASE = "testcase";
77
78     /** the error element */
79     String JavaDoc ERROR = "error";
80
81     /** the failure element */
82     String JavaDoc FAILURE = "failure";
83
84     /** the system-err element */
85     String JavaDoc SYSTEM_ERR = "system-err";
86
87     /** the system-out element */
88     String JavaDoc SYSTEM_OUT = "system-out";
89
90     /** package attribute for the aggregate document */
91     String JavaDoc ATTR_PACKAGE = "package";
92
93     /** name attribute for property, testcase and testsuite elements */
94     String JavaDoc ATTR_NAME = "name";
95
96     /** time attribute for testcase and testsuite elements */
97     String JavaDoc ATTR_TIME = "time";
98
99     /** errors attribute for testsuite elements */
100     String JavaDoc ATTR_ERRORS = "errors";
101
102     /** failures attribute for testsuite elements */
103     String JavaDoc ATTR_FAILURES = "failures";
104
105     /** tests attribute for testsuite elements */
106     String JavaDoc ATTR_TESTS = "tests";
107
108     /** type attribute for failure and error elements */
109     String JavaDoc ATTR_TYPE = "type";
110
111     /** message attribute for failure elements */
112     String JavaDoc ATTR_MESSAGE = "message";
113
114     /** the properties element */
115     String JavaDoc PROPERTIES = "properties";
116
117     /** the property element */
118     String JavaDoc PROPERTY = "property";
119
120     /** value attribute for property elements */
121     String JavaDoc ATTR_VALUE = "value";
122
123     /** classname attribute for testcase elements */
124     String JavaDoc ATTR_CLASSNAME = "classname";
125
126     /** id attribute */
127     String JavaDoc ATTR_ID = "id";
128
129     /**
130      * timestamp of test cases
131      */

132     String JavaDoc TIMESTAMP = "timestamp";
133
134     /**
135      * name of host running the tests
136      */

137     String JavaDoc HOSTNAME = "hostname";
138 }
139
Popular Tags