test.compliance.monitor
Class MonitorTestCase

java.lang.Object
  extended byTestCase
      extended bytest.compliance.monitor.MonitorTestCase
All Implemented Interfaces:
java.util.EventListener, NotificationListener (src)

public class MonitorTestCase
extends TestCase
implements NotificationListener (src)

Monitor Notification Tests

See Also:
Serialized Form

Constructor Summary
MonitorTestCase(java.lang.String s)
          Construct the test
 
Method Summary
 void handleNotification(Notification (src)  n, java.lang.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitorTestCase

public MonitorTestCase(java.lang.String s)
Construct the test

Method Detail

testNotificationTypes

public void testNotificationTypes()
Test notification types differ


testCounterNotificationInfo

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededEarlyNoOffsetNoModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededLateNoOffsetNoModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededManyNoOffsetNoModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdNotExceededNoOffsetNoModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededNoneNoOffsetNoModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededEarlyOffsetNoModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededLateOffsetNoModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededManyOffsetNoModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdNotExceededOffsetNoModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededNoneOffsetNoModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededEarlyNoOffsetModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededLateNoOffsetModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededManyNoOffsetModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdNotExceededNoOffsetModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededNoneNoOffsetModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededEarlyOffsetModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededLateOffsetModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededManyOffsetModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdNotExceededOffsetModulus

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

Throws:
java.lang.Exception

testNormalCounterThresholdExceededNoneOffsetModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdExceededNoOffsetNoModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdExceededManyNoOffsetNoModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdNotExceededNoOffsetNoModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdExceededNoneNoOffsetNoModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdExceededOffsetNoModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdExceededManyOffsetNoModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdNotExceededOffsetNoModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdExceededNoneOffsetNoModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdExceededNoOffsetModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdExceededManyNoOffsetModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdNotExceededNoOffsetModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdExceededNoneNoOffsetModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdExceededOffsetModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdExceededManyOffsetModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdNotExceededOffsetModulus

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

Throws:
java.lang.Exception

testDiffCounterThresholdExceededNoneOffsetModulus

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

Throws:
java.lang.Exception

testCounterInvalidAttribute

public void testCounterInvalidAttribute()
                                 throws java.lang.Exception
Test invalid attribute

Throws:
java.lang.Exception

testCounterInvalidAttributeNull

public void testCounterInvalidAttributeNull()
                                     throws java.lang.Exception
Test invalid attribute

Throws:
java.lang.Exception

testCounterInvalidAttributeType

public void testCounterInvalidAttributeType()
                                     throws java.lang.Exception
Test invalid attribute type

Throws:
java.lang.Exception

testCounterWriteOnly

public void testCounterWriteOnly()
                          throws java.lang.Exception
Test write only attribute

Throws:
java.lang.Exception

testCounterInvalidObjectName

public void testCounterInvalidObjectName()
                                  throws java.lang.Exception
Test invalid attribute type

Throws:
java.lang.Exception

testCounterInvalidThreshold

public void testCounterInvalidThreshold()
                                 throws java.lang.Exception
Test invalid threshold

Throws:
java.lang.Exception

testCounterInvalidOffset

public void testCounterInvalidOffset()
                              throws java.lang.Exception
Test invalid threshold

Throws:
java.lang.Exception

testCounterInvalidModulus

public void testCounterInvalidModulus()
                               throws java.lang.Exception
Test invalid threshold

Throws:
java.lang.Exception

testCounterRuntimeError

public void testCounterRuntimeError()
                             throws java.lang.Exception
Test runtime error

Throws:
java.lang.Exception

testGaugeNotificationInfo

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

Throws:
java.lang.Exception

testGaugeInvalidAttribute

public void testGaugeInvalidAttribute()
                               throws java.lang.Exception
Test invalid attribute

Throws:
java.lang.Exception

testGaugeInvalidAttributeNull

public void testGaugeInvalidAttributeNull()
                                   throws java.lang.Exception
Test invalid attribute

Throws:
java.lang.Exception

testGaugeInvalidAttributeType

public void testGaugeInvalidAttributeType()
                                   throws java.lang.Exception
Test invalid attribute type

Throws:
java.lang.Exception

testGaugeWriteOnly

public void testGaugeWriteOnly()
                        throws java.lang.Exception
Test write only

Throws:
java.lang.Exception

testGaugeInvalidObjectName

public void testGaugeInvalidObjectName()
                                throws java.lang.Exception
Test invalid attribute type

Throws:
java.lang.Exception

testGaugeInvalidThreshold

public void testGaugeInvalidThreshold()
                               throws java.lang.Exception
Test invalid threshold

Throws:
java.lang.Exception

testGaugeRuntimeError

public void testGaugeRuntimeError()
                           throws java.lang.Exception
Test runtime error

Throws:
java.lang.Exception

testStringNotificationInfo

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

Throws:
java.lang.Exception

testStringDifferEarly

public void testStringDifferEarly()
                           throws java.lang.Exception
Test a string differs

Throws:
java.lang.Exception

testStringDifferLate

public void testStringDifferLate()
                          throws java.lang.Exception
Test a string differs

Throws:
java.lang.Exception

testStringDifferManyEarly

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

Throws:
java.lang.Exception

testStringDifferManyLate

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

Throws:
java.lang.Exception

testStringMatchEarly

public void testStringMatchEarly()
                          throws java.lang.Exception
Test a string matches

Throws:
java.lang.Exception

testStringMatchLate

public void testStringMatchLate()
                         throws java.lang.Exception
Test a string matches

Throws:
java.lang.Exception

testStringMatchManyEarly

public void testStringMatchManyEarly()
                              throws java.lang.Exception
Test a string matches

Throws:
java.lang.Exception

testStringMatchManyLate

public void testStringMatchManyLate()
                             throws java.lang.Exception
Test a string matches

Throws:
java.lang.Exception

testStringBoth

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

Throws:
java.lang.Exception

testStringBothMany

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

Throws:
java.lang.Exception

testStringNever

public void testStringNever()
                     throws java.lang.Exception
Test a string nothing

Throws:
java.lang.Exception

testStringInvalidAttribute

public void testStringInvalidAttribute()
                                throws java.lang.Exception
Test invalid attribute

Throws:
java.lang.Exception

testStringInvalidAttributeNull

public void testStringInvalidAttributeNull()
                                    throws java.lang.Exception
Test invalid attribute

Throws:
java.lang.Exception

testStringInvalidAttributeType

public void testStringInvalidAttributeType()
                                    throws java.lang.Exception
Test invalid attribute type

Throws:
java.lang.Exception

testStringWriteOnly

public void testStringWriteOnly()
                         throws java.lang.Exception
Test write only attribute

Throws:
java.lang.Exception

testStringInvalidObjectName

public void testStringInvalidObjectName()
                                 throws java.lang.Exception
Test invalid attribute type

Throws:
java.lang.Exception

testStringRuntimeError

public void testStringRuntimeError()
                            throws java.lang.Exception
Test runtime error

Throws:
java.lang.Exception

handleNotification

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

Specified by:
handleNotification in interface NotificationListener (src)
Parameters:
n - the notification object
ignored - the handback object given to the broadcaster upon listener registration