Java Doc for TestComponentRegistry.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.TestComponentRegistry

TestComponentRegistry
public class TestComponentRegistry extends junit.framework.TestCase (Code)
Tests the ComponentRegistry class.
author:
   Sun Microsystems, Inc.


Field Summary
final static  StringBC_BOOTSTRAP_CLASS_NAME
    
final static  StringBC_BOOTSTRAP_CLASS_PATH
    
final static  StringBC_ID
    
final static  StringBC_LIFECYCLE_CLASS_NAME
    
final static  StringBC_LIFECYCLE_CLASS_PATH
    
final static  intFOUR
    
final static  StringSA_NAME_1
    
final static  StringSA_NAME_2
    
final static  StringSE_BOOTSTRAP_CLASS_NAME
    
final static  StringSE_BOOTSTRAP_CLASS_PATH
    
final static  StringSE_ID
    
final static  StringSE_LIFECYCLE_CLASS_NAME
    
final static  StringSE_LIFECYCLE_CLASS_PATH
    
final static  StringSHARED_LIBRARY_1
    
final static  StringSHARED_LIBRARY_2
    
final static  StringSU_NAME_1
    
final static  StringSU_NAME_2
    
final static  StringSU_PATH_1
    
final static  StringSU_PATH_2
    
final static  intTHREE
    

Constructor Summary
public  TestComponentRegistry(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  voidtestGetComponentBadInput()
     Tests getComponent with a null component ID parameter.
public  voidtestGetComponentGood()
     Tests getComponent with a good result.
public  voidtestGetSharedLibrary()
     Tests getSharedLibrary with a good result.
public  voidtestGetSharedLibraryBadInput()
     Tests getSharedLibrary with a null componentId parameter.
public  voidtestIsComponentRegisteredBadInput()
     Tests isComponentRegistered with a null component ID parameter.
public  voidtestIsComponentRegisteredGood()
     Tests isComponentRegistered with a good result.
public  voidtestIsSharedLibraryRegisteredBadInput()
     Tests isSharedLibraryRegistered with a null shared library name parameter.
public  voidtestIsSharedLibraryRegisteredGood()
     Tests isSharedLibraryRegistered with a good result.
public  voidtestRegisterComponentBadDuplicate()
     Tests registerComponent with a duplicate Component.
public  voidtestRegisterComponentBadInput()
     Tests registerComponent with a null component parameter.
public  voidtestRegisterComponentGood()
     Tests registerComponent with a good result.
public  voidtestRegisterServiceUnitBadDuplicate()
     Tests registerServiceUnit with a duplicate Service Unit.
public  voidtestRegisterServiceUnitBadInput()
     Tests registerServiceUnit with a null input parameter.
public  voidtestRegisterServiceUnitBadNotFound()
     Tests registerServiceUnit with a nonexistent Component.
public  voidtestRegisterServiceUnitGood()
     Tests registerServiceUnit with a good result.
public  voidtestRegisterSharedLibraryBadDuplicate()
     Tests registerSharedLibrary with a duplicate SharedLibrary.
public  voidtestRegisterSharedLibraryBadInput()
     Tests registerSharedLibrary with a null SharedLibrary parameter.
public  voidtestRegisterSharedLibraryGood()
     Tests registerSharedLibrary with a good result.
public  voidtestUnregisterComponentBadInput()
     Tests unregisterComponent with a null component ID parameter.
public  voidtestUnregisterComponentBadNotRegistered()
     Tests unregisterComponent with a component ID that is not registered.
public  voidtestUnregisterComponentGood()
     Tests unregisterComponent with a good result.
public  voidtestUnregisterServiceUnitBadInput()
     Tests unregisterServiceUnit with null parameters.
public  voidtestUnregisterServiceUnitBadNotFound()
     Tests unregisterServiceUnit with a Component name that does not exist.
public  voidtestUnregisterServiceUnitBadNotRegistered()
     Tests unregisterServiceUnit with a Service Unit name that is not registered.
public  voidtestUnregisterServiceUnitGood()
     Tests unregisterServiceUnit with a good result.
public  voidtestUnregisterSharedLibraryBadInput()
     Tests unregisterSharedLibrary with a null shared library name parameter.
public  voidtestUnregisterSharedLibraryBadNotRegistered()
     Tests unregisterSharedLibrary with a shared library name that is not registered.
public  voidtestUnregisterSharedLibraryGood()
     Tests unregisterSharedLibrary with a good result.
public  voidtestgetStatusBadNotFound()
     Tests getStatus with a component ID that is not registered.
public  voidtestgetStatusBadNull()
     Tests getStatus with a null argument.
public  voidtestgetStatusGood()
     Tests getStatus with a good result.

Field Detail
BC_BOOTSTRAP_CLASS_NAME
final static String BC_BOOTSTRAP_CLASS_NAME(Code)
Constant for BC bootstrap class name



BC_BOOTSTRAP_CLASS_PATH
final static String BC_BOOTSTRAP_CLASS_PATH(Code)
Constant for BC bootstrap class path



BC_ID
final static String BC_ID(Code)
Constant for BC component ID



BC_LIFECYCLE_CLASS_NAME
final static String BC_LIFECYCLE_CLASS_NAME(Code)
Constant for BC life cycle class name



BC_LIFECYCLE_CLASS_PATH
final static String BC_LIFECYCLE_CLASS_PATH(Code)
Constant for BC life cycle class path



FOUR
final static int FOUR(Code)
Constant for test results



SA_NAME_1
final static String SA_NAME_1(Code)
Constant for Service Assembly 1



SA_NAME_2
final static String SA_NAME_2(Code)
Constant for Service Assembly 2



SE_BOOTSTRAP_CLASS_NAME
final static String SE_BOOTSTRAP_CLASS_NAME(Code)
Constant for SE bootstrap class name



SE_BOOTSTRAP_CLASS_PATH
final static String SE_BOOTSTRAP_CLASS_PATH(Code)
Constant for SE bootstrap class path



SE_ID
final static String SE_ID(Code)
Constant for SE component ID



SE_LIFECYCLE_CLASS_NAME
final static String SE_LIFECYCLE_CLASS_NAME(Code)
Constant for SE life cycle class name



SE_LIFECYCLE_CLASS_PATH
final static String SE_LIFECYCLE_CLASS_PATH(Code)
Constant for SE life cycle class path



SHARED_LIBRARY_1
final static String SHARED_LIBRARY_1(Code)
Constant for Shared Library 1



SHARED_LIBRARY_2
final static String SHARED_LIBRARY_2(Code)
Constant for Shared Library 2



SU_NAME_1
final static String SU_NAME_1(Code)
Constant for Service Unit 1



SU_NAME_2
final static String SU_NAME_2(Code)
Constant for Service Unit 2



SU_PATH_1
final static String SU_PATH_1(Code)
Constant for Service Unit 1 root file path



SU_PATH_2
final static String SU_PATH_2(Code)
Constant for Service Unit 2 root file path



THREE
final static int THREE(Code)
Constant for test results




Constructor Detail
TestComponentRegistry
public TestComponentRegistry(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. This creates the ComponentRegistry instance and other objects needed for the tests.
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.



testGetComponentBadInput
public void testGetComponentBadInput() throws Exception(Code)
Tests getComponent with a null component ID parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testGetComponentGood
public void testGetComponentGood() throws Exception(Code)
Tests getComponent with a good result.
throws:
  Exception - if an unexpected error occurs.



testGetSharedLibrary
public void testGetSharedLibrary() throws Exception(Code)
Tests getSharedLibrary with a good result.
throws:
  Exception - if an unexpected error occurs.



testGetSharedLibraryBadInput
public void testGetSharedLibraryBadInput() throws Exception(Code)
Tests getSharedLibrary with a null componentId parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testIsComponentRegisteredBadInput
public void testIsComponentRegisteredBadInput() throws Exception(Code)
Tests isComponentRegistered with a null component ID parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testIsComponentRegisteredGood
public void testIsComponentRegisteredGood() throws Exception(Code)
Tests isComponentRegistered with a good result.
throws:
  Exception - if an unexpected error occurs.



testIsSharedLibraryRegisteredBadInput
public void testIsSharedLibraryRegisteredBadInput() throws Exception(Code)
Tests isSharedLibraryRegistered with a null shared library name parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testIsSharedLibraryRegisteredGood
public void testIsSharedLibraryRegisteredGood() throws Exception(Code)
Tests isSharedLibraryRegistered with a good result.
throws:
  Exception - if an unexpected error occurs.



testRegisterComponentBadDuplicate
public void testRegisterComponentBadDuplicate() throws Exception(Code)
Tests registerComponent with a duplicate Component. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testRegisterComponentBadInput
public void testRegisterComponentBadInput() throws Exception(Code)
Tests registerComponent with a null component parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testRegisterComponentGood
public void testRegisterComponentGood() throws Exception(Code)
Tests registerComponent with a good result.
throws:
  Exception - if an unexpected error occurs.



testRegisterServiceUnitBadDuplicate
public void testRegisterServiceUnitBadDuplicate() throws Exception(Code)
Tests registerServiceUnit with a duplicate Service Unit. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testRegisterServiceUnitBadInput
public void testRegisterServiceUnitBadInput() throws Exception(Code)
Tests registerServiceUnit with a null input parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testRegisterServiceUnitBadNotFound
public void testRegisterServiceUnitBadNotFound() throws Exception(Code)
Tests registerServiceUnit with a nonexistent Component. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testRegisterServiceUnitGood
public void testRegisterServiceUnitGood() throws Exception(Code)
Tests registerServiceUnit with a good result.
throws:
  Exception - if an unexpected error occurs.



testRegisterSharedLibraryBadDuplicate
public void testRegisterSharedLibraryBadDuplicate() throws Exception(Code)
Tests registerSharedLibrary with a duplicate SharedLibrary. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testRegisterSharedLibraryBadInput
public void testRegisterSharedLibraryBadInput() throws Exception(Code)
Tests registerSharedLibrary with a null SharedLibrary parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testRegisterSharedLibraryGood
public void testRegisterSharedLibraryGood() throws Exception(Code)
Tests registerSharedLibrary with a good result.
throws:
  Exception - if an unexpected error occurs.



testUnregisterComponentBadInput
public void testUnregisterComponentBadInput() throws Exception(Code)
Tests unregisterComponent with a null component ID parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUnregisterComponentBadNotRegistered
public void testUnregisterComponentBadNotRegistered() throws Exception(Code)
Tests unregisterComponent with a component ID that is not registered. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUnregisterComponentGood
public void testUnregisterComponentGood() throws Exception(Code)
Tests unregisterComponent with a good result.
throws:
  Exception - if an unexpected error occurs.



testUnregisterServiceUnitBadInput
public void testUnregisterServiceUnitBadInput() throws Exception(Code)
Tests unregisterServiceUnit with null parameters. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUnregisterServiceUnitBadNotFound
public void testUnregisterServiceUnitBadNotFound() throws Exception(Code)
Tests unregisterServiceUnit with a Component name that does not exist. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUnregisterServiceUnitBadNotRegistered
public void testUnregisterServiceUnitBadNotRegistered() throws Exception(Code)
Tests unregisterServiceUnit with a Service Unit name that is not registered. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUnregisterServiceUnitGood
public void testUnregisterServiceUnitGood() throws Exception(Code)
Tests unregisterServiceUnit with a good result.
throws:
  Exception - if an unexpected error occurs.



testUnregisterSharedLibraryBadInput
public void testUnregisterSharedLibraryBadInput() throws Exception(Code)
Tests unregisterSharedLibrary with a null shared library name parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUnregisterSharedLibraryBadNotRegistered
public void testUnregisterSharedLibraryBadNotRegistered() throws Exception(Code)
Tests unregisterSharedLibrary with a shared library name that is not registered. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUnregisterSharedLibraryGood
public void testUnregisterSharedLibraryGood() throws Exception(Code)
Tests unregisterSharedLibrary with a good result.
throws:
  Exception - if an unexpected error occurs.



testgetStatusBadNotFound
public void testgetStatusBadNotFound() throws Exception(Code)
Tests getStatus with a component ID that is not registered. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testgetStatusBadNull
public void testgetStatusBadNull() throws Exception(Code)
Tests getStatus with a null argument. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testgetStatusGood
public void testgetStatusGood() throws Exception(Code)
Tests getStatus with a good result.
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.