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

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



Constructor Summary
public  TestComponent(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  voidtestAddGetServiceUnit()
     Test the addServiceUnit/getServiceUnit methods.
public  voidtestAddServiceUnitBadDuplicate()
     Test the addServiceUnit method with a duplicate Service Unit name.
public  voidtestAddServiceUnitBadNull()
     Test the addServiceUnit method with a null Service Unit.
public  voidtestGetBootstrapInstanceBadClassInvalid()
     Test the getBootstrapInstance with a class that does not implement the required interfaces to cause a class loading failure.
public  voidtestGetBootstrapInstanceBadNotFound()
     Test the getBootstrapInstance with a bad class name to cause a class loading failure.
public  voidtestGetClearBootstrapInstance()
     Test the get and clear methods for the Bootstrap Instance.
public  voidtestGetClearLifeCycleInstance()
     Test the getLifeCycleInstance and clearLifeCycleInstance methods.
public  voidtestGetComponentClassPathAsString()
     Test the getComponentClassPathAsString method.
public  voidtestGetComponentInstance()
     Test the getComponentInstance method.
public  voidtestGetComponentTypeAsString()
     Test the getComponentTypeAsString method.
public  voidtestGetLifeCycleInstanceBadClassInvalid()
     Test the getLifeCycleInstance with a class that does not implement the required interfaces to cause a class loading failure.
public  voidtestGetLifeCycleInstanceBadNotFound()
     Test the getLifeCycleInstance with a bad classpath to cause a class loading failure.
public  voidtestGetServiceUnitList()
     Test the getServiceUnitList method.
public  voidtestGetServiceUnitManager()
     Test the getServiceUnitManager method.
public  voidtestGetSetBootstrapClassName()
     Test the get and set methods for the Bootstrap Class Name.
public  voidtestGetSetBootstrapClassPathElements()
     Test the get and set methods for the Bootstrap Class Path Elements.
public  voidtestGetSetClearStatisticsInstance()
     Test the get and set methods for the Statistics instance.
public  voidtestGetSetComponentClassName()
     Test the get and set methods for the component class name.
public  voidtestGetSetComponentClassPathElements()
     Test the get and set methods for the component class path elements.
public  voidtestGetSetComponentType()
     Test the get and set methods for the component type.
public  voidtestGetSetConfigurationMBeanName()
     Test the get and set methods for the Configuration MBean name.
public  voidtestGetSetContext()
     Test the get and set methods for the context.
public  voidtestGetSetDeployerInstance()
     Test the get and set methods for the Deployer instance.
public  voidtestGetSetDeployerMBeanName()
     Test the get and set methods for the Deployer MBean name.
public  voidtestGetSetDescription()
     Test the get and set methods for the component description.
public  voidtestGetSetDesiredState()
     Test the get and set methods for the desired state.
public  voidtestGetSetExtensionMBeanName()
     Test the get and set methods for the Extension MBean name.
public  voidtestGetSetInstallRoot()
     Test the get and set methods for the component install root directory.
public  voidtestGetSetInstallationDescriptor()
     Test the get and set methods for the Installation Descriptor.
public  voidtestGetSetInstallerMBeanName()
     Test the get and set methods for the Installer MBean name.
public  voidtestGetSetLifeCycleMBeanName()
     Test the get and set methods for the LifeCycle MBean name.
public  voidtestGetSetLoggerInstance()
     Test the getLoggerInstance/setLoggerInstance methods.
public  voidtestGetSetLoggerMBeanName()
     Test the getLoggerMBeanName/setLoggerMBeanName methods.
public  voidtestGetSetName()
     Test the get and set methods for the component name.
public  voidtestGetSetSharedLibraryNames()
     Test the get and set methods for the Shared Library ID list.
public  voidtestGetSetStatisticsMBeanName()
     Test the get and set methods for the Statistics MBean name.
public  voidtestGetSetStatus()
     Test the get and set methods for the component status.
public  voidtestGetSetWorkspaceRoot()
     Test the get and set methods for the workspace root directory.
public  voidtestGetStatusAsString()
     Test the getStatusAsString method.
public  voidtestIsBinding()
     Test the isBinding and setComponentTypeBinding methods.
public  voidtestIsBootstrapClassLoaderSelfFirst()
     Test the isBootstrapClassLoaderSelfFirst and setBootstrapClassLoaderSelfFirst methods.
public  voidtestIsBootstrapCleanUpNeeded()
     Test the isBootstrapCleanUpNeeded and setBootstrapCleanUpNeeded methods.
public  voidtestIsComponentClassLoaderSelfFirst()
     Test the isComponentClassLoaderSelfFirst and setComponentClassLoaderSelfFirst methods.
public  voidtestIsEngine()
     Test the isEngine method.
public  voidtestIsInitialized()
     Test the isInitialized method.
public  voidtestIsInstalled()
     Test the isInstalled method.
public  voidtestIsLoaded()
     Test the isLoaded method.
public  voidtestIsServiceUnitRegistered()
     Test the isServiceUnitRegistered method.
public  voidtestIsSetClearBusy()
     Test the isBusy/setBusy/setBusyForce/clearBusy methods.
public  voidtestIsSetClearUpdating()
     Test the isUpdating/setUpdating/clearUpdating methods.
public  voidtestIsSetObserver()
     Test the isObserver/setObserver methods.
public  voidtestIsShutDown()
     Test the isShutDown method.
public  voidtestIsStarted()
     Test the isStarted method.
public  voidtestIsStopped()
     Test the isStopped method.
public  voidtestRemoveServiceUnit()
     Test the removeServiceUnit method.
public  voidtestRemoveServiceUnitBadNotFound()
     Test the removeServiceUnit method with a non-existent Service Unit name.
public  voidtestSetLoaded()
     Test the setLoaded method.
public  voidtestSetShutdown()
     Test the setShutdown method.
public  voidtestSetStarted()
     Test the setStarted method.
public  voidtestSetStopped()
     Test the setStopped method.


Constructor Detail
TestComponent
public TestComponent(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.



testAddGetServiceUnit
public void testAddGetServiceUnit() throws Exception(Code)
Test the addServiceUnit/getServiceUnit methods.
throws:
  Exception - if an unexpected error occurs.



testAddServiceUnitBadDuplicate
public void testAddServiceUnitBadDuplicate() throws Exception(Code)
Test the addServiceUnit method with a duplicate Service Unit name. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testAddServiceUnitBadNull
public void testAddServiceUnitBadNull() throws Exception(Code)
Test the addServiceUnit method with a null Service Unit. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testGetBootstrapInstanceBadClassInvalid
public void testGetBootstrapInstanceBadClassInvalid() throws Exception(Code)
Test the getBootstrapInstance with a class that does not implement the required interfaces to cause a class loading failure.
throws:
  Exception - if an unexpected error occurs.



testGetBootstrapInstanceBadNotFound
public void testGetBootstrapInstanceBadNotFound() throws Exception(Code)
Test the getBootstrapInstance with a bad class name to cause a class loading failure.
throws:
  Exception - if an unexpected error occurs.



testGetClearBootstrapInstance
public void testGetClearBootstrapInstance() throws Exception(Code)
Test the get and clear methods for the Bootstrap Instance.
throws:
  Exception - if an unexpected error occurs.



testGetClearLifeCycleInstance
public void testGetClearLifeCycleInstance() throws Exception(Code)
Test the getLifeCycleInstance and clearLifeCycleInstance methods.
throws:
  Exception - if an unexpected error occurs.



testGetComponentClassPathAsString
public void testGetComponentClassPathAsString() throws Exception(Code)
Test the getComponentClassPathAsString method.
throws:
  Exception - if an unexpected error occurs.



testGetComponentInstance
public void testGetComponentInstance() throws Exception(Code)
Test the getComponentInstance method.
throws:
  Exception - if an unexpected error occurs.



testGetComponentTypeAsString
public void testGetComponentTypeAsString() throws Exception(Code)
Test the getComponentTypeAsString method.
throws:
  Exception - if an unexpected error occurs.



testGetLifeCycleInstanceBadClassInvalid
public void testGetLifeCycleInstanceBadClassInvalid() throws Exception(Code)
Test the getLifeCycleInstance with a class that does not implement the required interfaces to cause a class loading failure.
throws:
  Exception - if an unexpected error occurs.



testGetLifeCycleInstanceBadNotFound
public void testGetLifeCycleInstanceBadNotFound() throws Exception(Code)
Test the getLifeCycleInstance with a bad classpath to cause a class loading failure.
throws:
  Exception - if an unexpected error occurs.



testGetServiceUnitList
public void testGetServiceUnitList() throws Exception(Code)
Test the getServiceUnitList method.
throws:
  Exception - if an unexpected error occurs.



testGetServiceUnitManager
public void testGetServiceUnitManager() throws Exception(Code)
Test the getServiceUnitManager method.
throws:
  Exception - if an unexpected error occurs.



testGetSetBootstrapClassName
public void testGetSetBootstrapClassName() throws Exception(Code)
Test the get and set methods for the Bootstrap Class Name.
throws:
  Exception - if an unexpected error occurs.



testGetSetBootstrapClassPathElements
public void testGetSetBootstrapClassPathElements() throws Exception(Code)
Test the get and set methods for the Bootstrap Class Path Elements.
throws:
  Exception - if an unexpected error occurs.



testGetSetClearStatisticsInstance
public void testGetSetClearStatisticsInstance() throws Exception(Code)
Test the get and set methods for the Statistics instance.
throws:
  Exception - if an unexpected error occurs.



testGetSetComponentClassName
public void testGetSetComponentClassName() throws Exception(Code)
Test the get and set methods for the component class name.
throws:
  Exception - if an unexpected error occurs.



testGetSetComponentClassPathElements
public void testGetSetComponentClassPathElements() throws Exception(Code)
Test the get and set methods for the component class path elements.
throws:
  Exception - if an unexpected error occurs.



testGetSetComponentType
public void testGetSetComponentType() throws Exception(Code)
Test the get and set methods for the component type.
throws:
  Exception - if an unexpected error occurs.



testGetSetConfigurationMBeanName
public void testGetSetConfigurationMBeanName() throws Exception(Code)
Test the get and set methods for the Configuration MBean name.
throws:
  Exception - if an unexpected error occurs.



testGetSetContext
public void testGetSetContext() throws Exception(Code)
Test the get and set methods for the context.
throws:
  Exception - if an unexpected error occurs.



testGetSetDeployerInstance
public void testGetSetDeployerInstance() throws Exception(Code)
Test the get and set methods for the Deployer instance.
throws:
  Exception - if an unexpected error occurs.



testGetSetDeployerMBeanName
public void testGetSetDeployerMBeanName() throws Exception(Code)
Test the get and set methods for the Deployer MBean name.
throws:
  Exception - if an unexpected error occurs.



testGetSetDescription
public void testGetSetDescription() throws Exception(Code)
Test the get and set methods for the component description.
throws:
  Exception - if an unexpected error occurs.



testGetSetDesiredState
public void testGetSetDesiredState() throws Exception(Code)
Test the get and set methods for the desired state.
throws:
  Exception - if an unexpected error occurs.



testGetSetExtensionMBeanName
public void testGetSetExtensionMBeanName() throws Exception(Code)
Test the get and set methods for the Extension MBean name.
throws:
  Exception - if an unexpected error occurs.



testGetSetInstallRoot
public void testGetSetInstallRoot() throws Exception(Code)
Test the get and set methods for the component install root directory.
throws:
  Exception - if an unexpected error occurs.



testGetSetInstallationDescriptor
public void testGetSetInstallationDescriptor() throws Exception(Code)
Test the get and set methods for the Installation Descriptor.
throws:
  Exception - if an unexpected error occurs.



testGetSetInstallerMBeanName
public void testGetSetInstallerMBeanName() throws Exception(Code)
Test the get and set methods for the Installer MBean name.
throws:
  Exception - if an unexpected error occurs.



testGetSetLifeCycleMBeanName
public void testGetSetLifeCycleMBeanName() throws Exception(Code)
Test the get and set methods for the LifeCycle MBean name.
throws:
  Exception - if an unexpected error occurs.



testGetSetLoggerInstance
public void testGetSetLoggerInstance() throws Exception(Code)
Test the getLoggerInstance/setLoggerInstance methods.
throws:
  Exception - if an unexpected error occurs.



testGetSetLoggerMBeanName
public void testGetSetLoggerMBeanName() throws Exception(Code)
Test the getLoggerMBeanName/setLoggerMBeanName methods.
throws:
  Exception - if an unexpected error occurs.



testGetSetName
public void testGetSetName() throws Exception(Code)
Test the get and set methods for the component name.
throws:
  Exception - if an unexpected error occurs.



testGetSetSharedLibraryNames
public void testGetSetSharedLibraryNames() throws Exception(Code)
Test the get and set methods for the Shared Library ID list.
throws:
  Exception - if an unexpected error occurs.



testGetSetStatisticsMBeanName
public void testGetSetStatisticsMBeanName() throws Exception(Code)
Test the get and set methods for the Statistics MBean name.
throws:
  Exception - if an unexpected error occurs.



testGetSetStatus
public void testGetSetStatus() throws Exception(Code)
Test the get and set methods for the component status.
throws:
  Exception - if an unexpected error occurs.



testGetSetWorkspaceRoot
public void testGetSetWorkspaceRoot() throws Exception(Code)
Test the get and set methods for the workspace root directory.
throws:
  Exception - if an unexpected error occurs.



testGetStatusAsString
public void testGetStatusAsString() throws Exception(Code)
Test the getStatusAsString method.
throws:
  Exception - if an unexpected error occurs.



testIsBinding
public void testIsBinding() throws Exception(Code)
Test the isBinding and setComponentTypeBinding methods.
throws:
  Exception - if an unexpected error occurs.



testIsBootstrapClassLoaderSelfFirst
public void testIsBootstrapClassLoaderSelfFirst() throws Exception(Code)
Test the isBootstrapClassLoaderSelfFirst and setBootstrapClassLoaderSelfFirst methods.
throws:
  Exception - if an unexpected error occurs.



testIsBootstrapCleanUpNeeded
public void testIsBootstrapCleanUpNeeded() throws Exception(Code)
Test the isBootstrapCleanUpNeeded and setBootstrapCleanUpNeeded methods.
throws:
  Exception - if an unexpected error occurs.



testIsComponentClassLoaderSelfFirst
public void testIsComponentClassLoaderSelfFirst() throws Exception(Code)
Test the isComponentClassLoaderSelfFirst and setComponentClassLoaderSelfFirst methods.
throws:
  Exception - if an unexpected error occurs.



testIsEngine
public void testIsEngine() throws Exception(Code)
Test the isEngine method.
throws:
  Exception - if an unexpected error occurs.



testIsInitialized
public void testIsInitialized() throws Exception(Code)
Test the isInitialized method.
throws:
  Exception - if an unexpected error occurs.



testIsInstalled
public void testIsInstalled() throws Exception(Code)
Test the isInstalled method.
throws:
  Exception - if an unexpected error occurs.



testIsLoaded
public void testIsLoaded() throws Exception(Code)
Test the isLoaded method.
throws:
  Exception - if an unexpected error occurs.



testIsServiceUnitRegistered
public void testIsServiceUnitRegistered() throws Exception(Code)
Test the isServiceUnitRegistered method.
throws:
  Exception - if an unexpected error occurs.



testIsSetClearBusy
public void testIsSetClearBusy() throws Exception(Code)
Test the isBusy/setBusy/setBusyForce/clearBusy methods.
throws:
  Exception - if an unexpected error occurs.



testIsSetClearUpdating
public void testIsSetClearUpdating() throws Exception(Code)
Test the isUpdating/setUpdating/clearUpdating methods.
throws:
  Exception - if an unexpected error occurs.



testIsSetObserver
public void testIsSetObserver() throws Exception(Code)
Test the isObserver/setObserver methods.
throws:
  Exception - if an unexpected error occurs.



testIsShutDown
public void testIsShutDown() throws Exception(Code)
Test the isShutDown method.
throws:
  Exception - if an unexpected error occurs.



testIsStarted
public void testIsStarted() throws Exception(Code)
Test the isStarted method.
throws:
  Exception - if an unexpected error occurs.



testIsStopped
public void testIsStopped() throws Exception(Code)
Test the isStopped method.
throws:
  Exception - if an unexpected error occurs.



testRemoveServiceUnit
public void testRemoveServiceUnit() throws Exception(Code)
Test the removeServiceUnit method.
throws:
  Exception - if an unexpected error occurs.



testRemoveServiceUnitBadNotFound
public void testRemoveServiceUnitBadNotFound() throws Exception(Code)
Test the removeServiceUnit method with a non-existent Service Unit name. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testSetLoaded
public void testSetLoaded() throws Exception(Code)
Test the setLoaded method.
throws:
  Exception - if an unexpected error occurs.



testSetShutdown
public void testSetShutdown() throws Exception(Code)
Test the setShutdown method.
throws:
  Exception - if an unexpected error occurs.



testSetStarted
public void testSetStarted() throws Exception(Code)
Test the setStarted method.
throws:
  Exception - if an unexpected error occurs.



testSetStopped
public void testSetStopped() throws Exception(Code)
Test the setStopped method.
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.