| |
|
| org.objectweb.jonas.examples.util.JExampleTestCase org.objectweb.jonas.examples.clients.alarm.C_alarm
C_alarm | public class C_alarm extends JExampleTestCase (Code) | | Define a class to test the Alarm example
Test authentication, generate alarm and process alarms
author: Florent Benoit |
C_alarm | public C_alarm(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
alarm 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 |
testGenerateAlarms | public void testGenerateAlarms() throws Exception(Code) | | Try to generate alarms. One of each kind of alarm (severe, informative, warning)
throws: Exception - if an error occurs |
testProcessAlarms | public void testProcessAlarms() throws Exception(Code) | | Try to process all alarms which were generated
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 |
|
|
|