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
String
SA_ZIP_NAME
Constant for Service Assembly zip name.
final
public
static
String
SA_ZIP_PATH
Constant for Service Assembly zip path.
final
public
static
String
SU_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
void
setUp
()
Setup for the test.
public
void
tearDown
()
Cleanup for the test.
public
void
testDeployBadAlreadyDeployed
()
Tests deploy with a Service Unit that has already been deployed.
public
void
testDeployBadComponentNotStarted
()
Tests deploy with component that is not started.
public
void
testDeployBadException
()
Tests deploy with an exception from the deploy method.
public
void
testDeployBadNoSuMgr
()
Tests deploy with a missing ServiceUnitManager.
public
void
testDeployBadNullServiceUnitName
()
Tests deploy with a null Service Unit name parameter.
public
void
testDeployBadNullServiceUnitRootPath
()
Tests deploy with a null Service Unit root path parameter.
public
void
testDeployBadTimeout
()
Tests deploy with a timeout on the deploy method.
public
void
testDeployGood
()
Tests deploy with a good result.
public
void
testGetDeploymentsGood
()
Tests getDeployments with a good result.
public
void
testGetServiceUnitStateBadNullServiceUnitName
()
Tests getServiceUnitState with a null Service Unit name.
public
void
testGetServiceUnitStateBadServiceUnitNotDeployed
()
Tests getServiceUnitState with a non-existent SU.
public
void
testGetServiceUnitStateGood
()
Tests getServiceUnitState with a good result.
public
void
testInitBadComponentNotStarted
()
Tests init with a component that is not started.
public
void
testInitBadException
()
Tests init with an exception from the init method.
public
void
testInitBadNullServiceUnitName
()
Tests init with a null Service Unit name parameter.
public
void
testInitBadNullServiceUnitRoot
()
Tests init with a null Service Unit root path parameter.
public
void
testInitBadServiceUnitNotDeployed
()
Tests init with a Service Unit that is not deployed.
public
void
testInitBadServiceUnitStarted
()
Tests init with a Service Unit that is started.
public
void
testInitBadTimeout
()
Tests init with a timeout on the init method.
public
void
testInitGood
()
Tests init with a good result.
public
void
testIsDeployedBadNullServiceUnitName
()
Tests isDeployed with a null Service Unit name parameter.
public
void
testIsDeployedGood
()
Tests isDeployed with a good result.
public
void
testShutDownBadComponentNotStarted
()
Tests shutdown with a component that is not started.
public
void
testShutDownBadException
()
Tests shutDown with an exception from the shutDown method.
public
void
testShutDownBadNotStopped
()
Tests shutdown with a Service Unit that is not stopped.
public
void
testShutDownBadNullServiceUnitName
()
Tests shutDown with a null Service Unit name parameter.
public
void
testShutDownBadServiceUnitNotDeployed
()
Tests shutDown with a Service Unit that is not deployed.
public
void
testShutDownBadTimeout
()
Tests shutDown with a timeout on the shutDown method.
public
void
testShutDownForceGoodException
()
Tests forced shutDown with an exception from the shutDown method.
public
void
testShutDownForceGoodNotStopped
()
Tests forced shutdown with a Service Unit that is not stopped.
public
void
testShutDownForceGoodTimeout
()
Tests forced shutDown with a timeout on the shutDown method.
public
void
testShutDownGood
()
Tests shutdown with a good result.
public
void
testStartBadComponentNotStarted
()
Tests start with a component that is not started.
public
void
testStartBadException
()
Tests start with an exception from the start method.
public
void
testStartBadNullServiceUnitName
()
Tests start with a null Service Unit name parameter.
public
void
testStartBadServiceUnitNotDeployed
()
Tests start with a Service Unit that is not deployed.
public
void
testStartBadServiceUnitNotInitialized
()
Tests start with a Service Unit that is not initialized.
public
void
testStartBadTimeout
()
Tests start with a timeout on the start method.
public
void
testStartGood
()
Tests start with a good result.
public
void
testStopBadComponentNotStarted
()
Tests stop with a component that is not started.
public
void
testStopBadException
()
Tests stop with an exception from the stop method.
public
void
testStopBadNullServiceUnitName
()
Tests stop with a null Service Unit name parameter.
public
void
testStopBadServiceUnitNotDeployed
()
Tests stop with a Service Unit that is not deployed.
public
void
testStopBadServiceUnitNotInitialized
()
Tests stop with a Service Unit that is not initialized.
public
void
testStopBadTimeout
()
Tests stop with a timeout on the stop method.
public
void
testStopGood
()
Tests stop with a good result.
public
void
testUndeployBadComponentNotStarted
()
Tests undeploy with component that is not started.
public
void
testUndeployBadException
()
Tests undeploy with an exception from the undeploy method.
public
void
testUndeployBadNotDeployed
()
Tests undeploy with a Service Unit that is not deployed.
public
void
testUndeployBadNotShutDown
()
Tests undeploy with a Service Unit that is not shut down.
public
void
testUndeployBadNullServiceUnitName
()
Tests undeploy with a null Service Unit name parameter.
public
void
testUndeployBadNullServiceUnitRootPath
()
Tests undeploy with a null Service Unit root path parameter.
public
void
testUndeployBadTimeout
()
Tests undeploy with a timeout on the undeploy method.
public
void
testUndeployForceBadNotShutDown
()
Tests forced undeploy with a Service Unit that is not shut down.
public
void
testUndeployForceGood
()
Tests forced undeploy with good results.
public
void
testUndeployForceGoodComponentNotStarted
()
Tests forced undeploy with component that is not started.
public
void
testUndeployForceGoodException
()
Tests forced undeploy with an exception in the SU manager.
public
void
testUndeployForceGoodTimeout
()
Tests forced undeploy with a timeout in the SU manager.
public
void
testUndeployGood
()
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.