org.jboss.test.jmx.compliance.monitor
Class MonitorTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.test.jmx.compliance.monitor.MonitorTestCase
All Implemented Interfaces:
EventListener, javax.management.NotificationListener, junit.framework.Test

public class MonitorTestCase
extends junit.framework.TestCase
implements javax.management.NotificationListener

Monitor Notification Tests

Author:
Adrian Brock.

Constructor Summary
MonitorTestCase(String s)
          Construct the test
 
Method Summary
 void handleNotification(javax.management.Notification n, Object ignored)
          Handle the notification, just add it to the list
 void testCounterInvalidAttribute()
          Test invalid attribute
 void testCounterInvalidAttributeNull()
          Test invalid attribute
 void testCounterInvalidAttributeType()
          Test invalid attribute type
 void testCounterInvalidModulus()
          Test invalid threshold
 void testCounterInvalidObjectName()
          Test invalid attribute type
 void testCounterInvalidOffset()
          Test invalid threshold
 void testCounterInvalidThreshold()
          Test invalid threshold
 void testCounterNotificationInfo()
          Test the notification info of the counter
 void testCounterRuntimeError()
          Test runtime error
 void testCounterWriteOnly()
          Test write only attribute
 void testDiffCounterThresholdExceededManyNoOffsetModulus()
          Test difference counter threshold no offset modulus
 void testDiffCounterThresholdExceededManyNoOffsetNoModulus()
          Test difference counter threshold no offset no modulus
 void testDiffCounterThresholdExceededManyOffsetModulus()
          Test difference counter threshold offset modulus
 void testDiffCounterThresholdExceededManyOffsetNoModulus()
          Test difference counter threshold offset no modulus
 void testDiffCounterThresholdExceededNoneNoOffsetModulus()
          Test difference counter threshold no offset modulus
 void testDiffCounterThresholdExceededNoneNoOffsetNoModulus()
          Test difference counter threshold no offset no modulus
 void testDiffCounterThresholdExceededNoneOffsetModulus()
          Test difference counter threshold offset modulus
 void testDiffCounterThresholdExceededNoneOffsetNoModulus()
          Test difference counter threshold offset no modulus
 void testDiffCounterThresholdExceededNoOffsetModulus()
          Test difference counter threshold no offset modulus
 void testDiffCounterThresholdExceededNoOffsetNoModulus()
          Test difference counter threshold no offset no modulus
 void testDiffCounterThresholdExceededOffsetModulus()
          Test difference counter threshold offset modulus
 void testDiffCounterThresholdExceededOffsetNoModulus()
          Test difference counter threshold offset no modulus
 void testDiffCounterThresholdNotExceededNoOffsetModulus()
          Test difference counter threshold no offset modulus
 void testDiffCounterThresholdNotExceededNoOffsetNoModulus()
          Test difference counter threshold no offset no modulus
 void testDiffCounterThresholdNotExceededOffsetModulus()
          Test difference counter threshold offset modulus
 void testDiffCounterThresholdNotExceededOffsetNoModulus()
          Test difference counter threshold offset no modulus
 void testGaugeInvalidAttribute()
          Test invalid attribute
 void testGaugeInvalidAttributeNull()
          Test invalid attribute
 void testGaugeInvalidAttributeType()
          Test invalid attribute type
 void testGaugeInvalidObjectName()
          Test invalid attribute type
 void testGaugeInvalidThreshold()
          Test invalid threshold
 void testGaugeNotificationInfo()
          Test the notification info of the gauge
 void testGaugeRuntimeError()
          Test runtime error
 void testGaugeWriteOnly()
          Test write only
 void testNormalCounterThresholdExceededEarlyNoOffsetModulus()
          Test normal counter threshold no offset modulus
 void testNormalCounterThresholdExceededEarlyNoOffsetNoModulus()
          Test normal counter threshold no offset no modulus
 void testNormalCounterThresholdExceededEarlyOffsetModulus()
          Test normal counter threshold offset modulus
 void testNormalCounterThresholdExceededEarlyOffsetNoModulus()
          Test normal counter threshold offset no modulus
 void testNormalCounterThresholdExceededLateNoOffsetModulus()
          Test normal counter threshold no offset modulus
 void testNormalCounterThresholdExceededLateNoOffsetNoModulus()
          Test normal counter threshold no offset no modulus
 void testNormalCounterThresholdExceededLateOffsetModulus()
          Test normal counter threshold offset modulus
 void testNormalCounterThresholdExceededLateOffsetNoModulus()
          Test normal counter threshold offset no modulus
 void testNormalCounterThresholdExceededManyNoOffsetModulus()
          Test normal counter threshold no offset modulus
 void testNormalCounterThresholdExceededManyNoOffsetNoModulus()
          Test normal counter threshold no offset no modulus
 void testNormalCounterThresholdExceededManyOffsetModulus()
          Test normal counter threshold offset modulus
 void testNormalCounterThresholdExceededManyOffsetNoModulus()
          Test normal counter threshold offset no modulus
 void testNormalCounterThresholdExceededNoneNoOffsetModulus()
          Test normal counter threshold no offset modulus
 void testNormalCounterThresholdExceededNoneNoOffsetNoModulus()
          Test normal counter threshold no offset no modulus
 void testNormalCounterThresholdExceededNoneOffsetModulus()
          Test normal counter threshold offset modulus
 void testNormalCounterThresholdExceededNoneOffsetNoModulus()
          Test normal counter threshold offset no modulus
 void testNormalCounterThresholdNotExceededNoOffsetModulus()
          Test normal counter threshold no offset modulus
 void testNormalCounterThresholdNotExceededNoOffsetNoModulus()
          Test normal counter threshold no offset no modulus
 void testNormalCounterThresholdNotExceededOffsetModulus()
          Test normal counter threshold offset modulus
 void testNormalCounterThresholdNotExceededOffsetNoModulus()
          Test normal counter threshold offset no modulus
 void testNotificationTypes()
          Test notification types differ
 void testStringBoth()
          Test a string differs and matches
 void testStringBothMany()
          Test a string differs and matches
 void testStringDifferEarly()
          Test a string differs
 void testStringDifferLate()
          Test a string differs
 void testStringDifferManyEarly()
          Test a string differs many
 void testStringDifferManyLate()
          Test a string differs many
 void testStringInvalidAttribute()
          Test invalid attribute
 void testStringInvalidAttributeNull()
          Test invalid attribute
 void testStringInvalidAttributeType()
          Test invalid attribute type
 void testStringInvalidObjectName()
          Test invalid attribute type
 void testStringMatchEarly()
          Test a string matches
 void testStringMatchLate()
          Test a string matches
 void testStringMatchManyEarly()
          Test a string matches
 void testStringMatchManyLate()
          Test a string matches
 void testStringNever()
          Test a string nothing
 void testStringNotificationInfo()
          Test the notification info of the string
 void testStringRuntimeError()
          Test runtime error
 void testStringWriteOnly()
          Test write only attribute
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MonitorTestCase

public MonitorTestCase(String s)
Construct the test

Method Detail

testNotificationTypes

public void testNotificationTypes()
Test notification types differ


testCounterNotificationInfo

public void testCounterNotificationInfo()
                                 throws Exception
Test the notification info of the counter

Throws:
Exception

testNormalCounterThresholdExceededEarlyNoOffsetNoModulus

public void testNormalCounterThresholdExceededEarlyNoOffsetNoModulus()
                                                              throws Exception
Test normal counter threshold no offset no modulus

Throws:
Exception

testNormalCounterThresholdExceededLateNoOffsetNoModulus

public void testNormalCounterThresholdExceededLateNoOffsetNoModulus()
                                                             throws Exception
Test normal counter threshold no offset no modulus

Throws:
Exception

testNormalCounterThresholdExceededManyNoOffsetNoModulus

public void testNormalCounterThresholdExceededManyNoOffsetNoModulus()
                                                             throws Exception
Test normal counter threshold no offset no modulus

Throws:
Exception

testNormalCounterThresholdNotExceededNoOffsetNoModulus

public void testNormalCounterThresholdNotExceededNoOffsetNoModulus()
                                                            throws Exception
Test normal counter threshold no offset no modulus

Throws:
Exception

testNormalCounterThresholdExceededNoneNoOffsetNoModulus

public void testNormalCounterThresholdExceededNoneNoOffsetNoModulus()
                                                             throws Exception
Test normal counter threshold no offset no modulus

Throws:
Exception

testNormalCounterThresholdExceededEarlyOffsetNoModulus

public void testNormalCounterThresholdExceededEarlyOffsetNoModulus()
                                                            throws Exception
Test normal counter threshold offset no modulus

Throws:
Exception

testNormalCounterThresholdExceededLateOffsetNoModulus

public void testNormalCounterThresholdExceededLateOffsetNoModulus()
                                                           throws Exception
Test normal counter threshold offset no modulus

Throws:
Exception

testNormalCounterThresholdExceededManyOffsetNoModulus

public void testNormalCounterThresholdExceededManyOffsetNoModulus()
                                                           throws Exception
Test normal counter threshold offset no modulus

Throws:
Exception

testNormalCounterThresholdNotExceededOffsetNoModulus

public void testNormalCounterThresholdNotExceededOffsetNoModulus()
                                                          throws Exception
Test normal counter threshold offset no modulus

Throws:
Exception

testNormalCounterThresholdExceededNoneOffsetNoModulus

public void testNormalCounterThresholdExceededNoneOffsetNoModulus()
                                                           throws Exception
Test normal counter threshold offset no modulus

Throws:
Exception

testNormalCounterThresholdExceededEarlyNoOffsetModulus

public void testNormalCounterThresholdExceededEarlyNoOffsetModulus()
                                                            throws Exception
Test normal counter threshold no offset modulus

Throws:
Exception

testNormalCounterThresholdExceededLateNoOffsetModulus

public void testNormalCounterThresholdExceededLateNoOffsetModulus()
                                                           throws Exception
Test normal counter threshold no offset modulus

Throws:
Exception

testNormalCounterThresholdExceededManyNoOffsetModulus

public void testNormalCounterThresholdExceededManyNoOffsetModulus()
                                                           throws Exception
Test normal counter threshold no offset modulus

Throws:
Exception

testNormalCounterThresholdNotExceededNoOffsetModulus

public void testNormalCounterThresholdNotExceededNoOffsetModulus()
                                                          throws Exception
Test normal counter threshold no offset modulus

Throws:
Exception

testNormalCounterThresholdExceededNoneNoOffsetModulus

public void testNormalCounterThresholdExceededNoneNoOffsetModulus()
                                                           throws Exception
Test normal counter threshold no offset modulus

Throws:
Exception

testNormalCounterThresholdExceededEarlyOffsetModulus

public void testNormalCounterThresholdExceededEarlyOffsetModulus()
                                                          throws Exception
Test normal counter threshold offset modulus

Throws:
Exception

testNormalCounterThresholdExceededLateOffsetModulus

public void testNormalCounterThresholdExceededLateOffsetModulus()
                                                         throws Exception
Test normal counter threshold offset modulus

Throws:
Exception

testNormalCounterThresholdExceededManyOffsetModulus

public void testNormalCounterThresholdExceededManyOffsetModulus()
                                                         throws Exception
Test normal counter threshold offset modulus

Throws:
Exception

testNormalCounterThresholdNotExceededOffsetModulus

public void testNormalCounterThresholdNotExceededOffsetModulus()
                                                        throws Exception
Test normal counter threshold offset modulus

Throws:
Exception

testNormalCounterThresholdExceededNoneOffsetModulus

public void testNormalCounterThresholdExceededNoneOffsetModulus()
                                                         throws Exception
Test normal counter threshold offset modulus

Throws:
Exception

testDiffCounterThresholdExceededNoOffsetNoModulus

public void testDiffCounterThresholdExceededNoOffsetNoModulus()
                                                       throws Exception
Test difference counter threshold no offset no modulus

Throws:
Exception

testDiffCounterThresholdExceededManyNoOffsetNoModulus

public void testDiffCounterThresholdExceededManyNoOffsetNoModulus()
                                                           throws Exception
Test difference counter threshold no offset no modulus

Throws:
Exception

testDiffCounterThresholdNotExceededNoOffsetNoModulus

public void testDiffCounterThresholdNotExceededNoOffsetNoModulus()
                                                          throws Exception
Test difference counter threshold no offset no modulus

Throws:
Exception

testDiffCounterThresholdExceededNoneNoOffsetNoModulus

public void testDiffCounterThresholdExceededNoneNoOffsetNoModulus()
                                                           throws Exception
Test difference counter threshold no offset no modulus

Throws:
Exception

testDiffCounterThresholdExceededOffsetNoModulus

public void testDiffCounterThresholdExceededOffsetNoModulus()
                                                     throws Exception
Test difference counter threshold offset no modulus

Throws:
Exception

testDiffCounterThresholdExceededManyOffsetNoModulus

public void testDiffCounterThresholdExceededManyOffsetNoModulus()
                                                         throws Exception
Test difference counter threshold offset no modulus

Throws:
Exception

testDiffCounterThresholdNotExceededOffsetNoModulus

public void testDiffCounterThresholdNotExceededOffsetNoModulus()
                                                        throws Exception
Test difference counter threshold offset no modulus

Throws:
Exception

testDiffCounterThresholdExceededNoneOffsetNoModulus

public void testDiffCounterThresholdExceededNoneOffsetNoModulus()
                                                         throws Exception
Test difference counter threshold offset no modulus

Throws:
Exception

testDiffCounterThresholdExceededNoOffsetModulus

public void testDiffCounterThresholdExceededNoOffsetModulus()
                                                     throws Exception
Test difference counter threshold no offset modulus

Throws:
Exception

testDiffCounterThresholdExceededManyNoOffsetModulus

public void testDiffCounterThresholdExceededManyNoOffsetModulus()
                                                         throws Exception
Test difference counter threshold no offset modulus

Throws:
Exception

testDiffCounterThresholdNotExceededNoOffsetModulus

public void testDiffCounterThresholdNotExceededNoOffsetModulus()
                                                        throws Exception
Test difference counter threshold no offset modulus

Throws:
Exception

testDiffCounterThresholdExceededNoneNoOffsetModulus

public void testDiffCounterThresholdExceededNoneNoOffsetModulus()
                                                         throws Exception
Test difference counter threshold no offset modulus

Throws:
Exception

testDiffCounterThresholdExceededOffsetModulus

public void testDiffCounterThresholdExceededOffsetModulus()
                                                   throws Exception
Test difference counter threshold offset modulus

Throws:
Exception

testDiffCounterThresholdExceededManyOffsetModulus

public void testDiffCounterThresholdExceededManyOffsetModulus()
                                                       throws Exception
Test difference counter threshold offset modulus

Throws:
Exception

testDiffCounterThresholdNotExceededOffsetModulus

public void testDiffCounterThresholdNotExceededOffsetModulus()
                                                      throws Exception
Test difference counter threshold offset modulus

Throws:
Exception

testDiffCounterThresholdExceededNoneOffsetModulus

public void testDiffCounterThresholdExceededNoneOffsetModulus()
                                                       throws Exception
Test difference counter threshold offset modulus

Throws:
Exception

testCounterInvalidAttribute

public void testCounterInvalidAttribute()
                                 throws Exception
Test invalid attribute

Throws:
Exception

testCounterInvalidAttributeNull

public void testCounterInvalidAttributeNull()
                                     throws Exception
Test invalid attribute

Throws:
Exception

testCounterInvalidAttributeType

public void testCounterInvalidAttributeType()
                                     throws Exception
Test invalid attribute type

Throws:
Exception

testCounterWriteOnly

public void testCounterWriteOnly()
                          throws Exception
Test write only attribute

Throws:
Exception

testCounterInvalidObjectName

public void testCounterInvalidObjectName()
                                  throws Exception
Test invalid attribute type

Throws:
Exception

testCounterInvalidThreshold

public void testCounterInvalidThreshold()
                                 throws Exception
Test invalid threshold

Throws:
Exception

testCounterInvalidOffset

public void testCounterInvalidOffset()
                              throws Exception
Test invalid threshold

Throws:
Exception

testCounterInvalidModulus

public void testCounterInvalidModulus()
                               throws Exception
Test invalid threshold

Throws:
Exception

testCounterRuntimeError

public void testCounterRuntimeError()
                             throws Exception
Test runtime error

Throws:
Exception

testGaugeNotificationInfo

public void testGaugeNotificationInfo()
                               throws Exception
Test the notification info of the gauge

Throws:
Exception

testGaugeInvalidAttribute

public void testGaugeInvalidAttribute()
                               throws Exception
Test invalid attribute

Throws:
Exception

testGaugeInvalidAttributeNull

public void testGaugeInvalidAttributeNull()
                                   throws Exception
Test invalid attribute

Throws:
Exception

testGaugeInvalidAttributeType

public void testGaugeInvalidAttributeType()
                                   throws Exception
Test invalid attribute type

Throws:
Exception

testGaugeWriteOnly

public void testGaugeWriteOnly()
                        throws Exception
Test write only

Throws:
Exception

testGaugeInvalidObjectName

public void testGaugeInvalidObjectName()
                                throws Exception
Test invalid attribute type

Throws:
Exception

testGaugeInvalidThreshold

public void testGaugeInvalidThreshold()
                               throws Exception
Test invalid threshold

Throws:
Exception

testGaugeRuntimeError

public void testGaugeRuntimeError()
                           throws Exception
Test runtime error

Throws:
Exception

testStringNotificationInfo

public void testStringNotificationInfo()
                                throws Exception
Test the notification info of the string

Throws:
Exception

testStringDifferEarly

public void testStringDifferEarly()
                           throws Exception
Test a string differs

Throws:
Exception

testStringDifferLate

public void testStringDifferLate()
                          throws Exception
Test a string differs

Throws:
Exception

testStringDifferManyEarly

public void testStringDifferManyEarly()
                               throws Exception
Test a string differs many

Throws:
Exception

testStringDifferManyLate

public void testStringDifferManyLate()
                              throws Exception
Test a string differs many

Throws:
Exception

testStringMatchEarly

public void testStringMatchEarly()
                          throws Exception
Test a string matches

Throws:
Exception

testStringMatchLate

public void testStringMatchLate()
                         throws Exception
Test a string matches

Throws:
Exception

testStringMatchManyEarly

public void testStringMatchManyEarly()
                              throws Exception
Test a string matches

Throws:
Exception

testStringMatchManyLate

public void testStringMatchManyLate()
                             throws Exception
Test a string matches

Throws:
Exception

testStringBoth

public void testStringBoth()
                    throws Exception
Test a string differs and matches

Throws:
Exception

testStringBothMany

public void testStringBothMany()
                        throws Exception
Test a string differs and matches

Throws:
Exception

testStringNever

public void testStringNever()
                     throws Exception
Test a string nothing

Throws:
Exception

testStringInvalidAttribute

public void testStringInvalidAttribute()
                                throws Exception
Test invalid attribute

Throws:
Exception

testStringInvalidAttributeNull

public void testStringInvalidAttributeNull()
                                    throws Exception
Test invalid attribute

Throws:
Exception

testStringInvalidAttributeType

public void testStringInvalidAttributeType()
                                    throws Exception
Test invalid attribute type

Throws:
Exception

testStringWriteOnly

public void testStringWriteOnly()
                         throws Exception
Test write only attribute

Throws:
Exception

testStringInvalidObjectName

public void testStringInvalidObjectName()
                                 throws Exception
Test invalid attribute type

Throws:
Exception

testStringRuntimeError

public void testStringRuntimeError()
                            throws Exception
Test runtime error

Throws:
Exception

handleNotification

public void handleNotification(javax.management.Notification n,
                               Object ignored)
Handle the notification, just add it to the list

Specified by:
handleNotification in interface javax.management.NotificationListener
Parameters:
n - the notification object
ignored - the handback object given to the broadcaster upon listener registration


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.