Source Code Cross Referenced for TestReport.java in  » Graphic-Library » batik » org » apache » batik » test » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Graphic Library » batik » org.apache.batik.test 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:
003:           Licensed to the Apache Software Foundation (ASF) under one or more
004:           contributor license agreements.  See the NOTICE file distributed with
005:           this work for additional information regarding copyright ownership.
006:           The ASF licenses this file to You under the Apache License, Version 2.0
007:           (the "License"); you may not use this file except in compliance with
008:           the License.  You may obtain a copy of the License at
009:
010:               http://www.apache.org/licenses/LICENSE-2.0
011:
012:           Unless required by applicable law or agreed to in writing, software
013:           distributed under the License is distributed on an "AS IS" BASIS,
014:           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015:           See the License for the specific language governing permissions and
016:           limitations under the License.
017:
018:         */
019:        package org.apache.batik.test;
020:
021:        /**
022:         * Defines the interface of a <tt>TestReport</tt> produced
023:         * by a <tt>Test</tt> case.
024:         *
025:         * @author <a href="mailto:vhardy@apache.lorg">Vincent Hardy</a>
026:         * @version $Id: TestReport.java 482121 2006-12-04 10:00:39Z dvholten $
027:         */
028:        public interface TestReport {
029:            /**
030:             * Error code to be used when a <tt>Test</tt> fails in
031:             * its own operation (i.e., the <tt>Test</tt> itself
032:             * fails, not what it is testing. An internal failure
033:             * is reported when any type of exception occurs while
034:             * running the test.
035:             */
036:            String ERROR_INTERNAL_TEST_FAILURE = "TestReport.error.internal.test.failure";
037:
038:            /**
039:             * Very generic error code which can be used to report
040:             * that the test failed.
041:             */
042:            String ERROR_TEST_FAILED = "TestReport.error.test.failed";
043:
044:            /**
045:             * Generic error code to report test assertion failures.
046:             */
047:            String ERROR_ASSERTION_FAILED = "TestReport.error.assertion.failed";
048:
049:            /**
050:             * Entry describing the class of the internal exception
051:             * that caused the test's internal failure
052:             */
053:            String ENTRY_KEY_INTERNAL_TEST_FAILURE_EXCEPTION_CLASS = "TestReport.entry.key.internal.test.failure.exception.class";
054:
055:            /**
056:             * Entry describing the messages of the internal exception
057:             * that caused the test's internal failure
058:             */
059:            String ENTRY_KEY_INTERNAL_TEST_FAILURE_EXCEPTION_MESSAGE = "TestReport.entry.key.internal.test.failure.exception.message";
060:
061:            /**
062:             * Entry with the stack trace for the internal exception
063:             * that caused the test's internal failure
064:             */
065:            String ENTRY_KEY_INTERNAL_TEST_FAILURE_EXCEPTION_STACK_TRACE = "TestReport.entry.key.internal.test.failure.exception.stack.trace";
066:
067:            /**
068:             * Entry with the class of the exception that caused the test to fail.
069:             * Note that this is different from
070:             * ENTRY_KEY_INTERNAL_TEST_FAILURE_EXCEPTION_CLASS, in
071:             * which case, the test itself failed unexpectedly. In this
072:             * case, the entry is used to describe an expected exception
073:             * for which the <tt>Test</tt> author probably created a
074:             * specific error code.
075:             */
076:            String ENTRY_KEY_REPORTED_TEST_FAILURE_EXCEPTION_CLASS = "TestReport.entry.key.reported.test.failure.exception.class";
077:
078:            /**
079:             * Entry with the message of the exception that caused the test to fail.
080:             * Note that this is different from
081:             * ENTRY_KEY_INTERNAL_TEST_FAILURE_EXCEPTION_MESSAGE, in
082:             * which case, the test itself failed unexpectedly. In this
083:             * case, the entry is used to describe an expected exception
084:             * for which the <tt>Test</tt> author probably created a
085:             * specific error code.
086:             */
087:            String ENTRY_KEY_REPORTED_TEST_FAILURE_EXCEPTION_MESSAGE = "TestReport.entry.key.reported.test.failure.exception.message";
088:
089:            /**
090:             * Entry with the stack trace that caused the test to fail.
091:             * Note that this is different from
092:             * ENTRY_KEY_INTERNAL_TEST_FAILURE_EXCEPTION_STACK_TRACE, in
093:             * which case, the test itself failed unexpectedly. In this
094:             * case, the entry is used to describe an expected exception
095:             * for which the <tt>Test</tt> author probably created a
096:             * specific error code.
097:             */
098:            String ENTRY_KEY_REPORTED_TEST_FAILURE_EXCEPTION_STACK_TRACE = "TestReport.entry.key.reported.test.failure.exception.stack.trace";
099:
100:            /**
101:             * Entry with the stack trace for a specific test error
102:             * condition.
103:             */
104:            String ENTRY_KEY_ERROR_CONDITION_STACK_TRACE = "TestReport.entry.key.error.condition.stack.trace";
105:
106:            /**
107:             * Inner class for describing an information element in a
108:             * <tt>TestReport</tt>
109:             */
110:            class Entry {
111:                private String entryKey;
112:                private Object entryValue;
113:
114:                public Entry(String entryKey, Object entryValue) {
115:                    this .entryKey = entryKey;
116:                    this .entryValue = entryValue;
117:                }
118:
119:                public final String getKey() {
120:                    return entryKey;
121:                }
122:
123:                public final Object getValue() {
124:                    return entryValue;
125:                }
126:            }
127:
128:            /**
129:             * Returns the overall test result
130:             */
131:            boolean hasPassed();
132:
133:            /**
134:             * Returns the error code. This should never be null
135:             * if the test failed (i.e., if hasPassed returns false).
136:             */
137:            String getErrorCode();
138:
139:            /**
140:             * Returns an array of <tt>Entry</tt> objects describing the
141:             * test result.
142:             * Accepted value types are <tt>String</tt> objects, <tt>URL</tt>
143:             * objects, <tt>File</tt> objects and <tt>TestReport</tt> objects.
144:             * <tt>File</tt> objects should be considered as temporary files
145:             */
146:            Entry[] getDescription();
147:
148:            /**
149:             * Appends <tt>entry</tt> to the array of description entry.
150:             */
151:            void addDescriptionEntry(String key, Object value);
152:
153:            /**
154:             * Returns the <tt>Test</tt> object that generated this
155:             * <tt>TestReport</tt>
156:             */
157:            Test getTest();
158:
159:            /**
160:             * Returns the parent report in case this <tt>TestReport</tt> is
161:             * part of a <tt>TestSuiteReport</tt>. This may be null.
162:             */
163:            TestSuiteReport getParentReport();
164:
165:            /**
166:             * Set this report's parent.
167:             */
168:            void setParentReport(TestSuiteReport parent);
169:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.