Java Doc for TestXmlUtil.java in  » ESB » open-esb » com » sun » jbi » framework » 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 » ESB » open esb » com.sun.jbi.framework 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.jbi.framework.TestXmlUtil

TestXmlUtil
public class TestXmlUtil extends junit.framework.TestCase (Code)
Tests for the Component class.
author:
   Sun Microsystems, Inc.

Inner Class :class SAXErrorHandler implements org.xml.sax.ErrorHandler


Constructor Summary
public  TestXmlUtil(String aTestName)
     The constructor for this testcase, forwards the test name to the jUnit TestCase base class.

Method Summary
public  voidsetUp()
     Setup for the test.
public  voidtearDown()
     Cleanup for the test.
public  voidtestGetAttributeBadNullAttrName()
     Test the getAttribute() method with a null attrName parameter.
public  voidtestGetAttributeBadNullNode()
     Test the getAttribute() method with a null node parameter.
public  voidtestGetAttributeGoodFound()
     Test the getAttribute() method with a specified attribute.
public  voidtestGetAttributeGoodFoundChild()
     Test the getAttribute() method with a specified attribute.
public  voidtestGetAttributeGoodNotFound()
     Test the getAttribute() method with a missing attribute.
public  voidtestGetBooleanValueOptionalMissing()
     Test the getBooleanValue() method for an optional tag that is missing.
public  voidtestGetBooleanValueOptionalPresent()
     Test the getBooleanValue() method for an optional tag that is present.
public  voidtestGetBooleanValueRequiredMissing()
     Test the getBooleanValue() method for a required tag that is missing.
public  voidtestGetBooleanValueRequiredPresent()
     Test the getBooleanValue() method for a required tag that is present.
public  voidtestGetElementOptionalMissing()
     Test the getElement() method for an optional tag that is missing.
public  voidtestGetElementOptionalPresent()
     Test the getElement() method for an optional tag that is present.
public  voidtestGetElementRequiredMissing()
     Test the getElement() method for a required tag that is missing.
public  voidtestGetElementRequiredPresent()
     Test the getElement() method for a required tag that is present.
public  voidtestGetElementRequiredRepeated()
     Test the getElement() method for a required tag that is repeated.
public  voidtestGetElementsOptionalMissing()
     Test the getElements() method for an optional tag that is missing.
public  voidtestGetElementsOptionalPresent()
     Test the getElements() method for an optional tag that is present.
public  voidtestGetElementsRequiredMissing()
     Test the getElements() method for a required tag that is missing.
public  voidtestGetElementsRequiredPresent()
     Test the getElements() method for a required tag that is present.
public  voidtestGetElementsRequiredRepeated()
     Test the getElements() method for a required tag that is repeated.
public  voidtestGetStringValueArrayOptionalMissing()
     Test the getStringValueArray() method for an optional tag that is missing.
public  voidtestGetStringValueArrayOptionalPresent()
     Test the getStringValueArray() method for an optional tag that is present.
public  voidtestGetStringValueArrayRequiredMissing()
     Test the getStringValueArray() method for a required tag that is missing.
public  voidtestGetStringValueArrayRequiredPresent()
     Test the getStringValueArray() method for a required tag that is present.
public  voidtestGetStringValueBadEmptyInput()
     Test the getStringValue() method with an empty input parameter.
public  voidtestGetStringValueBadMissingTextNode()
     Test the getStringValue() method with a missing text node.
public  voidtestGetStringValueBadNullInput()
     Test the getStringValue() method with a null input parameter.
public  voidtestGetStringValueBadRepeated()
     Test the getStringValue() method with a tag that is repeated.
public  voidtestGetStringValueBadWrongType()
     Test the getStringValue() method with an incorrect node.
public  voidtestGetStringValueNodeBadEmptyInput()
     Test the getStringValue(Node) method with an empty input parameter.
public  voidtestGetStringValueNodeBadMissingTextNode()
     Test the getStringValue(Node) method with a missing text node.
public  voidtestGetStringValueNodeBadNullInput()
     Test the getStringValue(Node) method with a null input parameter.
public  voidtestGetStringValueNodeGood()
     Test the getStringValue(Node) method with a text node present.
public  voidtestGetStringValueOptionalMissing()
     Test the getStringValue() method for an optional tag that is missing.
public  voidtestGetStringValueOptionalPresent()
     Test the getStringValue() method for an optional tag that is present.
public  voidtestGetStringValueRequiredMissing()
     Test the getStringValue() method for a required tag that is missing.
public  voidtestGetStringValueRequiredPresent()
     Test the getStringValue() method for a required tag that is present.


Constructor Detail
TestXmlUtil
public TestXmlUtil(String aTestName)(Code)
The constructor for this testcase, forwards the test name to the jUnit TestCase base class.
Parameters:
  aTestName - String with the name of this test.




Method Detail
setUp
public void setUp() throws Exception(Code)
Setup for the test.
throws:
  Exception - when set up fails for any reason.



tearDown
public void tearDown() throws Exception(Code)
Cleanup for the test.
throws:
  Exception - when tearDown fails for any reason.



testGetAttributeBadNullAttrName
public void testGetAttributeBadNullAttrName() throws Exception(Code)
Test the getAttribute() method with a null attrName parameter.
throws:
  Exception - if an unexpected error occurs.



testGetAttributeBadNullNode
public void testGetAttributeBadNullNode() throws Exception(Code)
Test the getAttribute() method with a null node parameter.
throws:
  Exception - if an unexpected error occurs.



testGetAttributeGoodFound
public void testGetAttributeGoodFound() throws Exception(Code)
Test the getAttribute() method with a specified attribute.
throws:
  Exception - if an unexpected error occurs.



testGetAttributeGoodFoundChild
public void testGetAttributeGoodFoundChild() throws Exception(Code)
Test the getAttribute() method with a specified attribute.
throws:
  Exception - if an unexpected error occurs.



testGetAttributeGoodNotFound
public void testGetAttributeGoodNotFound() throws Exception(Code)
Test the getAttribute() method with a missing attribute.
throws:
  Exception - if an unexpected error occurs.



testGetBooleanValueOptionalMissing
public void testGetBooleanValueOptionalMissing() throws Exception(Code)
Test the getBooleanValue() method for an optional tag that is missing.
throws:
  Exception - if an unexpected error occurs.



testGetBooleanValueOptionalPresent
public void testGetBooleanValueOptionalPresent() throws Exception(Code)
Test the getBooleanValue() method for an optional tag that is present.
throws:
  Exception - if an unexpected error occurs.



testGetBooleanValueRequiredMissing
public void testGetBooleanValueRequiredMissing() throws Exception(Code)
Test the getBooleanValue() method for a required tag that is missing.
throws:
  Exception - if an unexpected error occurs.



testGetBooleanValueRequiredPresent
public void testGetBooleanValueRequiredPresent() throws Exception(Code)
Test the getBooleanValue() method for a required tag that is present.
throws:
  Exception - if an unexpected error occurs.



testGetElementOptionalMissing
public void testGetElementOptionalMissing() throws Exception(Code)
Test the getElement() method for an optional tag that is missing.
throws:
  Exception - if an unexpected error occurs.



testGetElementOptionalPresent
public void testGetElementOptionalPresent() throws Exception(Code)
Test the getElement() method for an optional tag that is present.
throws:
  Exception - if an unexpected error occurs.



testGetElementRequiredMissing
public void testGetElementRequiredMissing() throws Exception(Code)
Test the getElement() method for a required tag that is missing.
throws:
  Exception - if an unexpected error occurs.



testGetElementRequiredPresent
public void testGetElementRequiredPresent() throws Exception(Code)
Test the getElement() method for a required tag that is present.
throws:
  Exception - if an unexpected error occurs.



testGetElementRequiredRepeated
public void testGetElementRequiredRepeated() throws Exception(Code)
Test the getElement() method for a required tag that is repeated.
throws:
  Exception - if an unexpected error occurs.



testGetElementsOptionalMissing
public void testGetElementsOptionalMissing() throws Exception(Code)
Test the getElements() method for an optional tag that is missing.
throws:
  Exception - if an unexpected error occurs.



testGetElementsOptionalPresent
public void testGetElementsOptionalPresent() throws Exception(Code)
Test the getElements() method for an optional tag that is present.
throws:
  Exception - if an unexpected error occurs.



testGetElementsRequiredMissing
public void testGetElementsRequiredMissing() throws Exception(Code)
Test the getElements() method for a required tag that is missing.
throws:
  Exception - if an unexpected error occurs.



testGetElementsRequiredPresent
public void testGetElementsRequiredPresent() throws Exception(Code)
Test the getElements() method for a required tag that is present.
throws:
  Exception - if an unexpected error occurs.



testGetElementsRequiredRepeated
public void testGetElementsRequiredRepeated() throws Exception(Code)
Test the getElements() method for a required tag that is repeated.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueArrayOptionalMissing
public void testGetStringValueArrayOptionalMissing() throws Exception(Code)
Test the getStringValueArray() method for an optional tag that is missing.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueArrayOptionalPresent
public void testGetStringValueArrayOptionalPresent() throws Exception(Code)
Test the getStringValueArray() method for an optional tag that is present.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueArrayRequiredMissing
public void testGetStringValueArrayRequiredMissing() throws Exception(Code)
Test the getStringValueArray() method for a required tag that is missing.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueArrayRequiredPresent
public void testGetStringValueArrayRequiredPresent() throws Exception(Code)
Test the getStringValueArray() method for a required tag that is present.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueBadEmptyInput
public void testGetStringValueBadEmptyInput() throws Exception(Code)
Test the getStringValue() method with an empty input parameter.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueBadMissingTextNode
public void testGetStringValueBadMissingTextNode() throws Exception(Code)
Test the getStringValue() method with a missing text node.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueBadNullInput
public void testGetStringValueBadNullInput() throws Exception(Code)
Test the getStringValue() method with a null input parameter.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueBadRepeated
public void testGetStringValueBadRepeated() throws Exception(Code)
Test the getStringValue() method with a tag that is repeated.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueBadWrongType
public void testGetStringValueBadWrongType() throws Exception(Code)
Test the getStringValue() method with an incorrect node.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueNodeBadEmptyInput
public void testGetStringValueNodeBadEmptyInput() throws Exception(Code)
Test the getStringValue(Node) method with an empty input parameter.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueNodeBadMissingTextNode
public void testGetStringValueNodeBadMissingTextNode() throws Exception(Code)
Test the getStringValue(Node) method with a missing text node.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueNodeBadNullInput
public void testGetStringValueNodeBadNullInput() throws Exception(Code)
Test the getStringValue(Node) method with a null input parameter.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueNodeGood
public void testGetStringValueNodeGood() throws Exception(Code)
Test the getStringValue(Node) method with a text node present.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueOptionalMissing
public void testGetStringValueOptionalMissing() throws Exception(Code)
Test the getStringValue() method for an optional tag that is missing.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueOptionalPresent
public void testGetStringValueOptionalPresent() throws Exception(Code)
Test the getStringValue() method for an optional tag that is present.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueRequiredMissing
public void testGetStringValueRequiredMissing() throws Exception(Code)
Test the getStringValue() method for a required tag that is missing.
throws:
  Exception - if an unexpected error occurs.



testGetStringValueRequiredPresent
public void testGetStringValueRequiredPresent() throws Exception(Code)
Test the getStringValue() method for a required tag that is present.
throws:
  Exception - if an unexpected error occurs.



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