| |
|
| org.objectweb.jonas.examples.util.JExampleTestCase org.objectweb.jonas.examples.clients.earsample.C_earsample
C_earsample | public class C_earsample extends JExampleTestCase (Code) | | Define a class to test the Alarm example
Test authentication, and check the sample is ok
author: Florent Benoit |
C_earsample | public C_earsample(String s)(Code) | | Constructor with a specified name
Parameters: s - name |
main | public static void main(String[] args)(Code) | | Main method
Parameters: args - the arguments |
setUp | protected void setUp() throws Exception(Code) | | Setup need for these tests
earsample is required
throws: Exception - if it fails |
suite | public static TestSuite suite()(Code) | | Get a new TestSuite for this class
a new TestSuite for this class |
testIsSampleOk | public void testIsSampleOk() throws Exception(Code) | | Check if the sample is OK. Analyze response
throws: Exception - if an error occurs |
testTryWithBadAuth | public void testTryWithBadAuth() throws Exception(Code) | | Try to authenticate with a bad login/password
throws: Exception - if an error occurs |
testTryWithJettyAuth | public void testTryWithJettyAuth() throws Exception(Code) | | Try to authenticate with a right login/password (jetty)
throws: Exception - if an error occurs |
testTryWithTomcatAuth | public void testTryWithTomcatAuth() throws Exception(Code) | | Try to authenticate with a right login/password (tomcat)
throws: Exception - if an error occurs |
testTryWithoutAuth | public void testTryWithoutAuth() throws Exception(Code) | | Try to log in without authentication
throws: Exception - if an error occurs |
|
|
|