| org.objectweb.jonas.applications.util.JApplicationsTestCase
All known Subclasses: org.objectweb.jonas.applications.clients.apps.mejb.F_MonitoringEndpoint,
JApplicationsTestCase | public class JApplicationsTestCase extends TestCase (Code) | | Define a class to add useful methods for test the examples
- Deploy ear, war and beans
- Retrieve initial context
author: Florent Benoit |
Field Summary | |
protected String | url | protected WebConversation | wc |
wc | protected WebConversation wc(Code) | | Conversation used for HttpUnit
|
JApplicationsTestCase | public JApplicationsTestCase(String s)(Code) | | Constructor with a specified name
Parameters: s - the name |
JApplicationsTestCase | public JApplicationsTestCase(String s, String url)(Code) | | Constructor with a specified name and url
Parameters: s - the name Parameters: url - the url which can be used |
JApplicationsTestCase | public JApplicationsTestCase(String s, String url, String username, String password)(Code) | | Constructor with a specific name and url
This constructor is to be used when Basic Authentication
is required.
Parameters: s - the name Parameters: url - the url which can be used Parameters: username - the username Parameters: password - the password |
callMainMethod | protected void callMainMethod(String classToLoad) throws Exception(Code) | | Call the main method of a specific class with empty args
Parameters: classToLoad - name of class which contains the main method throws: Exception - if it fails |
callMainMethod | protected void callMainMethod(String classToLoad, String[] args) throws Exception(Code) | | Call the main method of a specific class and the specific args
Parameters: classToLoad - name of class which contains the main method Parameters: args - args to give to the main method throws: Exception - if it fails |
getAbsoluteUrl | protected String getAbsoluteUrl(String url)(Code) | | Add to the specified url the prefix
Parameters: url - relative URL absolute path of URL |
setUp | protected void setUp() throws Exception(Code) | | Common setUp routine, used for every test.
throws: Exception - if an error occurs |
unUseBeans | public void unUseBeans(String filename) throws Exception(Code) | | Unload a bean jar file in the jonas server
Parameters: filename - jar file, without ".jar" extension throws: Exception - if an error occurs |
useBeans | public void useBeans(String filename) throws Exception(Code) | | Load a bean jar file in the jonas server
Parameters: filename - jar file, without ".jar" extension throws: Exception - if an error occurs |
useEar | public void useEar(String filename) throws Exception(Code) | | Load an ear file in the jonas server
Parameters: filename - ear file, without ".ear" extension throws: Exception - if an error occurs |
useWar | public void useWar(String filename) throws Exception(Code) | | Load a war file in the jonas server
Parameters: filename - war file, without ".war" extension throws: Exception - if an error occurs |
|
|