|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object TestSetup org.jboss.test.JBossTestSetup
This is a TestSetup class for jboss junit test cases that provides the jboss test services. It supplies access to log4j logging, the jboss jmx server, jndi, and a method for deploying ejb packages. You may supply the name of the machine the jboss server is on with the system property jbosstest.server.name (default getInetAddress().getLocalHost().getHostName()) and the directory for deployable packages with the system property jbosstest.deploy.dir (default ../lib). Should be sublassed to derive junit support for specific services integrated into JBoss.
Field Summary | |
protected JBossTestServices (src) |
delegate
|
Constructor Summary | |
JBossTestSetup(Test test)
Constructor for the JBossTestCase object |
Method Summary | |
protected JBossTestServices (src) |
createTestServices()
|
protected void |
deploy(java.lang.String name)
Deploy a package with the main deployer. |
protected void |
flushAuthCache()
|
protected void |
flushAuthCache(java.lang.String domain)
|
protected int |
getBeanCount()
|
protected ObjectName (src) |
getDeployerName()
Gets the DeployerName attribute of the JBossTestCase object |
protected java.lang.String |
getDeployURL(java.lang.String filename)
Returns the deployment directory to use. |
protected javax.naming.InitialContext |
getInitialContext()
Gets the InitialContext attribute of the JBossTestCase object |
protected int |
getIterationCount()
|
protected java.lang.String |
getJndiInitFactory()
|
protected java.lang.String |
getJndiURL()
|
protected Category |
getLog()
Gets the Log attribute of the JBossTestCase object |
protected java.lang.String |
getResourceURL(java.lang.String path)
|
protected RMIAdaptor (src) |
getServer()
Gets the Server attribute of the JBossTestCase object |
java.lang.String |
getServerHost()
Get the JBoss server host from system property "jbosstest.host.name" This defaults to "localhost" |
protected int |
getThreadCount()
|
protected java.lang.Object |
invoke(ObjectName (src) name,
java.lang.String method,
java.lang.Object[] args,
java.lang.String[] sig)
invoke wraps an invoke call to the mbean server in a lot of exception unwrapping. |
protected void |
redeploy(java.lang.String name)
|
protected void |
restartDBPool()
Restart the connection pool associated with the DefaultDS |
protected void |
undeploy(java.lang.String name)
Undeploy a package with the main deployer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected JBossTestServices (src) delegate
Constructor Detail |
public JBossTestSetup(Test test) throws java.lang.Exception
Method Detail |
protected JBossTestServices (src) createTestServices()
protected javax.naming.InitialContext getInitialContext() throws java.lang.Exception
java.lang.Exception
protected RMIAdaptor (src) getServer() throws java.lang.Exception
java.lang.Exception
protected Category getLog()
protected ObjectName (src) getDeployerName() throws MalformedObjectNameException (src)
MalformedObjectNameException (src)
- Description of Exceptionprotected java.lang.String getDeployURL(java.lang.String filename) throws java.net.MalformedURLException
filename
- name of the file/url you want
java.net.MalformedURLException
- Description of Exceptionprotected java.lang.String getResourceURL(java.lang.String path)
protected java.lang.Object invoke(ObjectName (src) name, java.lang.String method, java.lang.Object[] args, java.lang.String[] sig) throws java.lang.Exception
name
- ObjectName of the mbean to be calledmethod
- mbean method to be calledargs
- Object[] of arguments for the mbean method.sig
- String[] of types for the mbean methods parameters.
java.lang.Exception
- Description of Exceptionprotected void deploy(java.lang.String name) throws java.lang.Exception
name
- filename/url of package to deploy.
java.lang.Exception
- Description of Exceptionprotected void redeploy(java.lang.String name) throws java.lang.Exception
java.lang.Exception
protected void undeploy(java.lang.String name) throws java.lang.Exception
name
- filename/url of package to undeploy.
java.lang.Exception
- Description of Exceptionprotected void flushAuthCache() throws java.lang.Exception
java.lang.Exception
protected void flushAuthCache(java.lang.String domain) throws java.lang.Exception
java.lang.Exception
protected void restartDBPool() throws java.lang.Exception
java.lang.Exception
- on failureprotected java.lang.String getJndiURL()
protected java.lang.String getJndiInitFactory()
protected int getThreadCount()
protected int getIterationCount()
protected int getBeanCount()
public java.lang.String getServerHost()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |