Java Doc for XMLTestSuiteRunnerValidator.java in  » Graphic-Library » batik » org » apache » batik » test » xml » 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.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.batik.test.AbstractTest
      org.apache.batik.test.DefaultTestSuite
         org.apache.batik.test.xml.XMLTestSuiteRunnerValidator

XMLTestSuiteRunnerValidator
public class XMLTestSuiteRunnerValidator extends DefaultTestSuite (Code)
Validates the operation of the XMLTestSuireRunner by checking that it runs the tests specified by the command line parameter and only these tests.
The test uses an dummy <testRun> which contains:
- testRun, id="all" - testSuite, href="testSuiteA.xml"
- testSuite, href="testSuiteB.xml"
Where:
- testSuite, id="A"
- test, id="A1"
- test, id="A2"
- test, id="duplicateId"
- testGroup, id="AG"
- test, id="AG1"
- test, id="AG2"
and:
- testSuite, id="B"
- test, id="B1"
- test, id="B2"
- test, id="B3"
- test, id="duplicateId"
where all the leaf test pass.

author:
   Vincent Hardy
version:
   $Id: XMLTestSuiteRunnerValidator.java 482121 2006-12-04 10:00:39Z dvholten $

Inner Class :static class XMLTestSuiteRunnerTest extends AbstractTest

Field Summary
final public static  StringENTRY_KEY_ACTUAL_RESULT
    
final public static  StringENTRY_KEY_CONFIGURATION
    
final public static  StringENTRY_KEY_EXPECTED_RESULT
    
final public static  StringENTRY_KEY_TEST_IDS_NOT_RUN
    
final public static  StringENTRY_KEY_TEST_ID_NOT_EXPECTED
    
final public static  StringERROR_EXTRA_TEST_RUN
    
final public static  StringERROR_TEST_NOT_RUN
    
final static  StringdummyTestRun
    

Constructor Summary
public  XMLTestSuiteRunnerValidator()
     This suite is made of elementary tests which validate that the XML result for a given input contains a list of report ids and no more (i.e., that the expected test reports were generated and no more).


Field Detail
ENTRY_KEY_ACTUAL_RESULT
final public static String ENTRY_KEY_ACTUAL_RESULT(Code)



ENTRY_KEY_CONFIGURATION
final public static String ENTRY_KEY_CONFIGURATION(Code)



ENTRY_KEY_EXPECTED_RESULT
final public static String ENTRY_KEY_EXPECTED_RESULT(Code)



ENTRY_KEY_TEST_IDS_NOT_RUN
final public static String ENTRY_KEY_TEST_IDS_NOT_RUN(Code)



ENTRY_KEY_TEST_ID_NOT_EXPECTED
final public static String ENTRY_KEY_TEST_ID_NOT_EXPECTED(Code)



ERROR_EXTRA_TEST_RUN
final public static String ERROR_EXTRA_TEST_RUN(Code)



ERROR_TEST_NOT_RUN
final public static String ERROR_TEST_NOT_RUN(Code)



dummyTestRun
final static String dummyTestRun(Code)
Dummy test-suite used to run the test




Constructor Detail
XMLTestSuiteRunnerValidator
public XMLTestSuiteRunnerValidator()(Code)
This suite is made of elementary tests which validate that the XML result for a given input contains a list of report ids and no more (i.e., that the expected test reports were generated and no more).
Specificaly, with fully qualified ids:
- no arguments. All tests-reports should be produced.
- 1 target test: "all.B.B3". A single test-report should be produced for B3.
- 1 target test-suite: "all.A". A test-report with "A1", "A2", "duplicatedId", "AG", "AG.AG1" and "AG.AG2" should be produced.
- 1 target test-suite and 2 tests: "all.B and all.A.A1 and all.A.A2. A test-report for "all.B.B1", "all.B.B2", "all.B.B3", "all.B.duplicatedId", "all.A.A1" and "all.A.A2" should be produced.
- 1 target testGroup: "AG". A test-report with "A.AG", "A.AG.AG1" and "A.AG.AG2" should be produced.

In addition, the following test with non-qualified ids:
- 1 target test id: "duplicatedId" should be produced and pass for "all.A.duplicatedId" and "all.B.duplicatedId".




Fields inherited from org.apache.batik.test.DefaultTestSuite
protected List tests(Code)(Java Doc)

Methods inherited from org.apache.batik.test.DefaultTestSuite
public void addTest(Test test)(Code)(Java Doc)
public int getChildrenCount()(Code)(Java Doc)
public Test[] getChildrenTests()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public void removeTest(Test test)(Code)(Java Doc)
public TestReport runImpl()(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)

Fields inherited from org.apache.batik.test.AbstractTest
protected String id(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected TestSuite parent(Code)(Java Doc)

Methods inherited from org.apache.batik.test.AbstractTest
public void assertEquals(Object ref, Object cmp) throws AssertEqualsException(Code)(Java Doc)
public void assertEquals(int ref, int cmp) throws AssertEqualsException(Code)(Java Doc)
public void assertNull(Object ref) throws AssertNullException(Code)(Java Doc)
public void assertTrue(boolean b) throws AssertTrueException(Code)(Java Doc)
public void error(String errorCode) throws TestErrorConditionException(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public TestSuite getParent()(Code)(Java Doc)
public String getQualifiedId()(Code)(Java Doc)
public TestReport reportError(String errorCode)(Code)(Java Doc)
public TestReport reportException(String errorCode, Exception e)(Code)(Java Doc)
public TestReport reportSuccess()(Code)(Java Doc)
public TestReport run()(Code)(Java Doc)
public TestReport runImpl() throws Exception(Code)(Java Doc)
public boolean runImplBasic() throws Exception(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setParent(TestSuite parent)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.