org.jboss.test.jbossmx.compliance.monitor
Class BasicTestCase

java.lang.Object
  extended byjunit.framework.TestCase
      extended byorg.jboss.test.jbossmx.compliance.TestCase (src) 
          extended byorg.jboss.test.jbossmx.compliance.monitor.BasicTestCase
All Implemented Interfaces:
java.util.EventListener, NotificationListener (src)

public class BasicTestCase
extends TestCase (src)
implements NotificationListener (src)

Basic monitor test.

The aim of these tests is to check the most common uses of the monitor services.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.jbossmx.compliance.TestCase (src)
log, MBEAN_SERVER_DELEGATE, PERIOD, REPEATS, WAIT
 
Constructor Summary
BasicTestCase(java.lang.String s)
           
 
Method Summary
 void handleNotification(Notification (src)  notification, java.lang.Object handback)
          Handle a notification, just add it to the list
 void testCounterDifferenceNotification()
          Test a counter in difference mode.
 void testCounterSimpleNotification()
          Test simple counter notification.
 void testGaugeSimpleBothNotification()
          Test simple gauge notification high and low.
 void testGaugeSimpleHighNotification()
          Test simple gauge notification high.
 void testGaugeSimpleLowNotification()
          Test simple gauge notification low.
 void testStringBothNotification()
          Test a String notification (both match and differ).
 void testStringDifferNotification()
          Test a String notification (just differ).
 void testStringMatchNotification()
          Test a String notification (just match).
 
Methods inherited from class org.jboss.test.jbossmx.compliance.TestCase (src)
testServerFound
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTestCase

public BasicTestCase(java.lang.String s)
Method Detail

testCounterSimpleNotification

public void testCounterSimpleNotification()
                                   throws java.lang.Exception
Test simple counter notification.

Throws:
java.lang.Exception

testCounterDifferenceNotification

public void testCounterDifferenceNotification()
                                       throws java.lang.Exception
Test a counter in difference mode.

Throws:
java.lang.Exception

testGaugeSimpleBothNotification

public void testGaugeSimpleBothNotification()
                                     throws java.lang.Exception
Test simple gauge notification high and low.

Throws:
java.lang.Exception

testGaugeSimpleHighNotification

public void testGaugeSimpleHighNotification()
                                     throws java.lang.Exception
Test simple gauge notification high.

Throws:
java.lang.Exception

testGaugeSimpleLowNotification

public void testGaugeSimpleLowNotification()
                                    throws java.lang.Exception
Test simple gauge notification low.

Throws:
java.lang.Exception

testStringBothNotification

public void testStringBothNotification()
                                throws java.lang.Exception
Test a String notification (both match and differ).

Throws:
java.lang.Exception

testStringMatchNotification

public void testStringMatchNotification()
                                 throws java.lang.Exception
Test a String notification (just match).

Throws:
java.lang.Exception

testStringDifferNotification

public void testStringDifferNotification()
                                  throws java.lang.Exception
Test a String notification (just differ).

Throws:
java.lang.Exception

handleNotification

public void handleNotification(Notification (src)  notification,
                               java.lang.Object handback)
Handle a notification, just add it to the list

Specified by:
handleNotification in interface NotificationListener (src)
Parameters:
notification - the notification received
handback - not used