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

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


Field Summary
final public static  StringSA_ZIP_NAME
     Constant for Service Assembly zip name.
final public static  StringSA_ZIP_PATH
     Constant for Service Assembly zip path.
final public static  StringSU_ZIP_NAME
     Constant for Service Unit zip name.

Constructor Summary
public  TestDeployer(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  voidtestDeployBadAlreadyDeployed()
     Tests deploy with a Service Unit that has already been deployed.
public  voidtestDeployBadComponentNotStarted()
     Tests deploy with component that is not started.
public  voidtestDeployBadException()
     Tests deploy with an exception from the deploy method.
public  voidtestDeployBadNoSuMgr()
     Tests deploy with a missing ServiceUnitManager.
public  voidtestDeployBadNullServiceUnitName()
     Tests deploy with a null Service Unit name parameter.
public  voidtestDeployBadNullServiceUnitRootPath()
     Tests deploy with a null Service Unit root path parameter.
public  voidtestDeployBadTimeout()
     Tests deploy with a timeout on the deploy method.
public  voidtestDeployGood()
     Tests deploy with a good result.
public  voidtestGetDeploymentsGood()
     Tests getDeployments with a good result.
public  voidtestGetServiceUnitStateBadNullServiceUnitName()
     Tests getServiceUnitState with a null Service Unit name.
public  voidtestGetServiceUnitStateBadServiceUnitNotDeployed()
     Tests getServiceUnitState with a non-existent SU.
public  voidtestGetServiceUnitStateGood()
     Tests getServiceUnitState with a good result.
public  voidtestInitBadComponentNotStarted()
     Tests init with a component that is not started.
public  voidtestInitBadException()
     Tests init with an exception from the init method.
public  voidtestInitBadNullServiceUnitName()
     Tests init with a null Service Unit name parameter.
public  voidtestInitBadNullServiceUnitRoot()
     Tests init with a null Service Unit root path parameter.
public  voidtestInitBadServiceUnitNotDeployed()
     Tests init with a Service Unit that is not deployed.
public  voidtestInitBadServiceUnitStarted()
     Tests init with a Service Unit that is started.
public  voidtestInitBadTimeout()
     Tests init with a timeout on the init method.
public  voidtestInitGood()
     Tests init with a good result.
public  voidtestIsDeployedBadNullServiceUnitName()
     Tests isDeployed with a null Service Unit name parameter.
public  voidtestIsDeployedGood()
     Tests isDeployed with a good result.
public  voidtestShutDownBadComponentNotStarted()
     Tests shutdown with a component that is not started.
public  voidtestShutDownBadException()
     Tests shutDown with an exception from the shutDown method.
public  voidtestShutDownBadNotStopped()
     Tests shutdown with a Service Unit that is not stopped.
public  voidtestShutDownBadNullServiceUnitName()
     Tests shutDown with a null Service Unit name parameter.
public  voidtestShutDownBadServiceUnitNotDeployed()
     Tests shutDown with a Service Unit that is not deployed.
public  voidtestShutDownBadTimeout()
     Tests shutDown with a timeout on the shutDown method.
public  voidtestShutDownForceGoodException()
     Tests forced shutDown with an exception from the shutDown method.
public  voidtestShutDownForceGoodNotStopped()
     Tests forced shutdown with a Service Unit that is not stopped.
public  voidtestShutDownForceGoodTimeout()
     Tests forced shutDown with a timeout on the shutDown method.
public  voidtestShutDownGood()
     Tests shutdown with a good result.
public  voidtestStartBadComponentNotStarted()
     Tests start with a component that is not started.
public  voidtestStartBadException()
     Tests start with an exception from the start method.
public  voidtestStartBadNullServiceUnitName()
     Tests start with a null Service Unit name parameter.
public  voidtestStartBadServiceUnitNotDeployed()
     Tests start with a Service Unit that is not deployed.
public  voidtestStartBadServiceUnitNotInitialized()
     Tests start with a Service Unit that is not initialized.
public  voidtestStartBadTimeout()
     Tests start with a timeout on the start method.
public  voidtestStartGood()
     Tests start with a good result.
public  voidtestStopBadComponentNotStarted()
     Tests stop with a component that is not started.
public  voidtestStopBadException()
     Tests stop with an exception from the stop method.
public  voidtestStopBadNullServiceUnitName()
     Tests stop with a null Service Unit name parameter.
public  voidtestStopBadServiceUnitNotDeployed()
     Tests stop with a Service Unit that is not deployed.
public  voidtestStopBadServiceUnitNotInitialized()
     Tests stop with a Service Unit that is not initialized.
public  voidtestStopBadTimeout()
     Tests stop with a timeout on the stop method.
public  voidtestStopGood()
     Tests stop with a good result.
public  voidtestUndeployBadComponentNotStarted()
     Tests undeploy with component that is not started.
public  voidtestUndeployBadException()
     Tests undeploy with an exception from the undeploy method.
public  voidtestUndeployBadNotDeployed()
     Tests undeploy with a Service Unit that is not deployed.
public  voidtestUndeployBadNotShutDown()
     Tests undeploy with a Service Unit that is not shut down.
public  voidtestUndeployBadNullServiceUnitName()
     Tests undeploy with a null Service Unit name parameter.
public  voidtestUndeployBadNullServiceUnitRootPath()
     Tests undeploy with a null Service Unit root path parameter.
public  voidtestUndeployBadTimeout()
     Tests undeploy with a timeout on the undeploy method.
public  voidtestUndeployForceBadNotShutDown()
     Tests forced undeploy with a Service Unit that is not shut down.
public  voidtestUndeployForceGood()
     Tests forced undeploy with good results.
public  voidtestUndeployForceGoodComponentNotStarted()
     Tests forced undeploy with component that is not started.
public  voidtestUndeployForceGoodException()
     Tests forced undeploy with an exception in the SU manager.
public  voidtestUndeployForceGoodTimeout()
     Tests forced undeploy with a timeout in the SU manager.
public  voidtestUndeployGood()
     Tests undeploy with a good result.

Field Detail
SA_ZIP_NAME
final public static String SA_ZIP_NAME(Code)
Constant for Service Assembly zip name.



SA_ZIP_PATH
final public static String SA_ZIP_PATH(Code)
Constant for Service Assembly zip path.



SU_ZIP_NAME
final public static String SU_ZIP_NAME(Code)
Constant for Service Unit zip name.




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



testDeployBadAlreadyDeployed
public void testDeployBadAlreadyDeployed() throws Exception(Code)
Tests deploy with a Service Unit that has already been deployed. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testDeployBadComponentNotStarted
public void testDeployBadComponentNotStarted() throws Exception(Code)
Tests deploy with component that is not started. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testDeployBadException
public void testDeployBadException() throws Exception(Code)
Tests deploy with an exception from the deploy method. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testDeployBadNoSuMgr
public void testDeployBadNoSuMgr() throws Exception(Code)
Tests deploy with a missing ServiceUnitManager. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testDeployBadNullServiceUnitName
public void testDeployBadNullServiceUnitName() throws Exception(Code)
Tests deploy with a null Service Unit name parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testDeployBadNullServiceUnitRootPath
public void testDeployBadNullServiceUnitRootPath() throws Exception(Code)
Tests deploy with a null Service Unit root path parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testDeployBadTimeout
public void testDeployBadTimeout() throws Exception(Code)
Tests deploy with a timeout on the deploy method. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



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



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



testGetServiceUnitStateBadNullServiceUnitName
public void testGetServiceUnitStateBadNullServiceUnitName() throws Exception(Code)
Tests getServiceUnitState with a null Service Unit name. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testGetServiceUnitStateBadServiceUnitNotDeployed
public void testGetServiceUnitStateBadServiceUnitNotDeployed() throws Exception(Code)
Tests getServiceUnitState with a non-existent SU.
throws:
  Exception - if an unexpected error occurs.



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



testInitBadComponentNotStarted
public void testInitBadComponentNotStarted() throws Exception(Code)
Tests init with a component that is not started. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testInitBadException
public void testInitBadException() throws Exception(Code)
Tests init with an exception from the init method. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testInitBadNullServiceUnitName
public void testInitBadNullServiceUnitName() throws Exception(Code)
Tests init with a null Service Unit name parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testInitBadNullServiceUnitRoot
public void testInitBadNullServiceUnitRoot() throws Exception(Code)
Tests init with a null Service Unit root path parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testInitBadServiceUnitNotDeployed
public void testInitBadServiceUnitNotDeployed() throws Exception(Code)
Tests init with a Service Unit that is not deployed. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testInitBadServiceUnitStarted
public void testInitBadServiceUnitStarted() throws Exception(Code)
Tests init with a Service Unit that is started. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testInitBadTimeout
public void testInitBadTimeout() throws Exception(Code)
Tests init with a timeout on the init method. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



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



testIsDeployedBadNullServiceUnitName
public void testIsDeployedBadNullServiceUnitName() throws Exception(Code)
Tests isDeployed with a null Service Unit name parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



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



testShutDownBadComponentNotStarted
public void testShutDownBadComponentNotStarted() throws Exception(Code)
Tests shutdown with a component that is not started. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testShutDownBadException
public void testShutDownBadException() throws Exception(Code)
Tests shutDown with an exception from the shutDown method. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testShutDownBadNotStopped
public void testShutDownBadNotStopped() throws Exception(Code)
Tests shutdown with a Service Unit that is not stopped.
throws:
  Exception - if an unexpected error occurs.



testShutDownBadNullServiceUnitName
public void testShutDownBadNullServiceUnitName() throws Exception(Code)
Tests shutDown with a null Service Unit name parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testShutDownBadServiceUnitNotDeployed
public void testShutDownBadServiceUnitNotDeployed() throws Exception(Code)
Tests shutDown with a Service Unit that is not deployed. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testShutDownBadTimeout
public void testShutDownBadTimeout() throws Exception(Code)
Tests shutDown with a timeout on the shutDown method. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testShutDownForceGoodException
public void testShutDownForceGoodException() throws Exception(Code)
Tests forced shutDown with an exception from the shutDown method.
throws:
  Exception - if an unexpected error occurs.



testShutDownForceGoodNotStopped
public void testShutDownForceGoodNotStopped() throws Exception(Code)
Tests forced shutdown with a Service Unit that is not stopped.
throws:
  Exception - if an unexpected error occurs.



testShutDownForceGoodTimeout
public void testShutDownForceGoodTimeout() throws Exception(Code)
Tests forced shutDown with a timeout on the shutDown method.
throws:
  Exception - if an unexpected error occurs.



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



testStartBadComponentNotStarted
public void testStartBadComponentNotStarted() throws Exception(Code)
Tests start with a component that is not started. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testStartBadException
public void testStartBadException() throws Exception(Code)
Tests start with an exception from the start method. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testStartBadNullServiceUnitName
public void testStartBadNullServiceUnitName() throws Exception(Code)
Tests start with a null Service Unit name parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testStartBadServiceUnitNotDeployed
public void testStartBadServiceUnitNotDeployed() throws Exception(Code)
Tests start with a Service Unit that is not deployed. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testStartBadServiceUnitNotInitialized
public void testStartBadServiceUnitNotInitialized() throws Exception(Code)
Tests start with a Service Unit that is not initialized. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testStartBadTimeout
public void testStartBadTimeout() throws Exception(Code)
Tests start with a timeout on the start method. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



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



testStopBadComponentNotStarted
public void testStopBadComponentNotStarted() throws Exception(Code)
Tests stop with a component that is not started. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testStopBadException
public void testStopBadException() throws Exception(Code)
Tests stop with an exception from the stop method. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testStopBadNullServiceUnitName
public void testStopBadNullServiceUnitName() throws Exception(Code)
Tests stop with a null Service Unit name parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testStopBadServiceUnitNotDeployed
public void testStopBadServiceUnitNotDeployed() throws Exception(Code)
Tests stop with a Service Unit that is not deployed. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testStopBadServiceUnitNotInitialized
public void testStopBadServiceUnitNotInitialized() throws Exception(Code)
Tests stop with a Service Unit that is not initialized. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testStopBadTimeout
public void testStopBadTimeout() throws Exception(Code)
Tests stop with a timeout on the stop method. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



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



testUndeployBadComponentNotStarted
public void testUndeployBadComponentNotStarted() throws Exception(Code)
Tests undeploy with component that is not started. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUndeployBadException
public void testUndeployBadException() throws Exception(Code)
Tests undeploy with an exception from the undeploy method. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUndeployBadNotDeployed
public void testUndeployBadNotDeployed() throws Exception(Code)
Tests undeploy with a Service Unit that is not deployed. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUndeployBadNotShutDown
public void testUndeployBadNotShutDown() throws Exception(Code)
Tests undeploy with a Service Unit that is not shut down. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUndeployBadNullServiceUnitName
public void testUndeployBadNullServiceUnitName() throws Exception(Code)
Tests undeploy with a null Service Unit name parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUndeployBadNullServiceUnitRootPath
public void testUndeployBadNullServiceUnitRootPath() throws Exception(Code)
Tests undeploy with a null Service Unit root path parameter. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUndeployBadTimeout
public void testUndeployBadTimeout() throws Exception(Code)
Tests undeploy with a timeout on the undeploy method. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUndeployForceBadNotShutDown
public void testUndeployForceBadNotShutDown() throws Exception(Code)
Tests forced undeploy with a Service Unit that is not shut down. An exception is expected.
throws:
  Exception - if an unexpected error occurs.



testUndeployForceGood
public void testUndeployForceGood() throws Exception(Code)
Tests forced undeploy with good results.
throws:
  Exception - if an unexpected error occurs.



testUndeployForceGoodComponentNotStarted
public void testUndeployForceGoodComponentNotStarted() throws Exception(Code)
Tests forced undeploy with component that is not started.
throws:
  Exception - if an unexpected error occurs.



testUndeployForceGoodException
public void testUndeployForceGoodException() throws Exception(Code)
Tests forced undeploy with an exception in the SU manager.
throws:
  Exception - if an unexpected error occurs.



testUndeployForceGoodTimeout
public void testUndeployForceGoodTimeout() throws Exception(Code)
Tests forced undeploy with a timeout in the SU manager.
throws:
  Exception - if an unexpected error occurs.



testUndeployGood
public void testUndeployGood() throws Exception(Code)
Tests undeploy 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.