1. /*
  2. * Copyright 2001,2004 The Apache Software Foundation
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. *
  16. */
  17. package org.apache.tools.ant.taskdefs.optional.junit;
  18. /**
  19. * <p> Interface groups XML constants.
  20. * Interface that groups all constants used throughout the <tt>XML</tt>
  21. * documents that are generated by the <tt>XMLJUnitResultFormatter</tt>
  22. * As of now the DTD is:
  23. * <code><pre>
  24. * <----------------- @todo describe DTDs ---------------------->
  25. *
  26. * </pre></code>
  27. * @see XMLJUnitResultFormatter
  28. * @see XMLResultAggregator
  29. */
  30. public interface XMLConstants {
  31. /** the testsuites element for the aggregate document */
  32. String TESTSUITES = "testsuites";
  33. /** the testsuite element */
  34. String TESTSUITE = "testsuite";
  35. /** the testcase element */
  36. String TESTCASE = "testcase";
  37. /** the error element */
  38. String ERROR = "error";
  39. /** the failure element */
  40. String FAILURE = "failure";
  41. /** the system-err element */
  42. String SYSTEM_ERR = "system-err";
  43. /** the system-out element */
  44. String SYSTEM_OUT = "system-out";
  45. /** package attribute for the aggregate document */
  46. String ATTR_PACKAGE = "package";
  47. /** name attribute for property, testcase and testsuite elements */
  48. String ATTR_NAME = "name";
  49. /** time attribute for testcase and testsuite elements */
  50. String ATTR_TIME = "time";
  51. /** errors attribute for testsuite elements */
  52. String ATTR_ERRORS = "errors";
  53. /** failures attribute for testsuite elements */
  54. String ATTR_FAILURES = "failures";
  55. /** tests attribute for testsuite elements */
  56. String ATTR_TESTS = "tests";
  57. /** type attribute for failure and error elements */
  58. String ATTR_TYPE = "type";
  59. /** message attribute for failure elements */
  60. String ATTR_MESSAGE = "message";
  61. /** the properties element */
  62. String PROPERTIES = "properties";
  63. /** the property element */
  64. String PROPERTY = "property";
  65. /** value attribute for property elements */
  66. String ATTR_VALUE = "value";
  67. /** classname attribute for testcase elements */
  68. String ATTR_CLASSNAME = "classname";
  69. }