| java.lang.Object org.jboss.test.JBossTestServices
JBossTestServices | public class JBossTestServices (Code) | | This is provides services for jboss junit test cases and TestSetups. It supplies
access to log4j logging, the jboss jmx server, jndi, and a method for
deploying ejb packages. You may supply the JNDI name under which the
RMIAdaptor interface is located via the system property jbosstest.server.name
default (jmx/rmi/RMIAdaptor) and the directory for deployable packages with
the system property jbosstest.deploy.dir (default ../lib).
Should be subclassed to derive junit support for specific services integrated
into jboss.
author: David Jencks author: Christoph G. Jung author: Scott Stark version: $Revision: 57221 $ |
DEFAULT_BEANCOUNT | final public static int DEFAULT_BEANCOUNT(Code) | | |
DEFAULT_ITERATIONCOUNT | final public static int DEFAULT_ITERATIONCOUNT(Code) | | |
DEFAULT_LOGIN_CONFIG | final public static String DEFAULT_LOGIN_CONFIG(Code) | | |
DEFAULT_PASSWORD | final public static String DEFAULT_PASSWORD(Code) | | |
DEFAULT_THREADCOUNT | final public static int DEFAULT_THREADCOUNT(Code) | | |
DEFAULT_USERNAME | final public static String DEFAULT_USERNAME(Code) | | |
log | protected Category log(Code) | | |
JBossTestServices | public JBossTestServices(String className)(Code) | | Constructor for the JBossTestCase object
Parameters: className - Test case name |
deploy | public void deploy(String name) throws Exception(Code) | | Deploy a package with the main deployer. The supplied name is
interpreted as a url, or as a filename in jbosstest.deploy.lib or ../lib.
Parameters: name - filename/url of package to deploy. exception: Exception - Description of Exception |
flushAuthCache | void flushAuthCache(String domain) throws Exception(Code) | | Flush all authentication credentials for the java:/jaas/other security
domain
|
getBeanCount | int getBeanCount()(Code) | | |
getDeployURL | protected URL getDeployURL(String filename) throws MalformedURLException(Code) | | Returns the deployment directory to use. This does it's best to figure out
where you are looking. If you supply a complete url, it returns it.
Otherwise, it looks for jbosstest.deploy.dir or if missing ../lib. Then it
tries to construct a file url or a url.
Parameters: filename - name of the file/url you want A URL exception: MalformedURLException - Description of Exception |
getInitialContext | public InitialContext getInitialContext() throws Exception(Code) | | Gets the InitialContext attribute of the JBossTestCase object
The InitialContext value |
getIterationCount | int getIterationCount()(Code) | | |
getLog | Category getLog()(Code) | | Gets the Log attribute of the JBossTestCase object
The Log value |
getServerHost | public String getServerHost()(Code) | | Returns the JBoss server host from system property "jbosstest.server.host"
This defaults to "localhost"
|
getThreadCount | int getThreadCount()(Code) | | |
invoke | protected Object invoke(ObjectName name, String method, Object[] args, String[] sig) throws Exception(Code) | | invoke wraps an invoke call to the mbean server in a lot of exception
unwrapping.
Parameters: name - ObjectName of the mbean to be called Parameters: method - mbean method to be called Parameters: args - Object[] of arguments for the mbean method. Parameters: sig - String[] of types for the mbean methods parameters. Object returned by mbean method invocation. exception: Exception - Description of Exception |
isSecure | boolean isSecure()(Code) | | |
login | public void login() throws Exception(Code) | | Do a JAAS login with the current username, password and login config.
throws: Exception - |
logout | public void logout()(Code) | | |
tearDown | public void tearDown() throws Exception(Code) | | The teardown method for JUnit
|
undeploy | public void undeploy(String name) throws Exception(Code) | | Undeploy a package with the main deployer. The supplied name is
interpreted as a url, or as a filename in jbosstest.deploy.lib or ../lib.
Parameters: name - filename/url of package to undeploy. exception: Exception - Description of Exception |
|
|