| org.objectweb.jonas.examples.util.JExampleTestCase
All known Subclasses: org.objectweb.jonas.examples.clients.webservices.C_webservices, org.objectweb.jonas.examples.clients.mdb.F_samplemdb, org.objectweb.jonas.examples.clients.mdb.C_mdb, org.objectweb.jonas.examples.clients.earsample.C_earsample, org.objectweb.jonas.examples.clients.j2eemanagement.C_j2eemanagement, org.objectweb.jonas.examples.clients.suite.C_suite, org.objectweb.jonas.examples.clients.mdb.F_sampleappli, org.objectweb.jonas.examples.clients.eb.C_eb, org.objectweb.jonas.examples.clients.webservices.A_WebServices, org.objectweb.jonas.examples.clients.sb.C_sb, org.objectweb.jonas.examples.clients.lb.C_lb, org.objectweb.jonas.examples.clients.olstore.C_olstore, org.objectweb.jonas.examples.clients.suite.C_WebExamples, org.objectweb.jonas.examples.clients.cmp2.C_cmp2, org.objectweb.jonas.examples.clients.sampleCluster2.F_SampleCluster2, org.objectweb.jonas.examples.clients.hibernate.C_hibernate, org.objectweb.jonas.examples.clients.petstore.C_petstore, org.objectweb.jonas.examples.clients.alarm.C_alarm, org.objectweb.jonas.examples.clients.mailsb.C_mailsb,
JExampleTestCase | public class JExampleTestCase 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
|
JExampleTestCase | public JExampleTestCase(String s)(Code) | | Constructor with a specified name
Parameters: s - the name |
JExampleTestCase | public JExampleTestCase(String s, String url)(Code) | | Constructor with a specified name and url
Parameters: s - the name Parameters: url - the url which can be used |
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 |
|
|