ch.syabru.nagios
Class NagiosJmxPluginTest

java.lang.Object
  extended by ch.syabru.nagios.NagiosJmxPluginTest

public class NagiosJmxPluginTest
extends Object

Nagios JMX Plugin test.

Author:
Felix Roethenbacher

Constructor Summary
NagiosJmxPluginTest()
           
 
Method Summary
 void testExecute()
           
 void testGetThresholdLimits()
          Test NagiosJmxPlugin.getThresholdLimits().
 void testInvoke()
           
 void testMockMBean()
          Test MockMBean.
 void testMultipleObjectNamePatternFail()
          Test result for multiple matches of object name pattern.
 void testObjectNamePattern()
          Test object name pattern.
 void testOpenConnection()
           
 void testParseAsNumber()
          Test NagiosJmxPlugin.parseAsNumber().
 void testQuery()
           
 void testThresholdCritical()
          Test threshold critical.
 void testThresholdRanges()
          Test threshold ranges.
 void testThresholdRegex()
          Test threshold regex.
 void testThresholdWarning()
          Test threshold warning.
 void testThresholdWarningCritical()
          Test threshold warning/critical.
 void testUnknownUnit()
          Test object name pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NagiosJmxPluginTest

public NagiosJmxPluginTest()
Method Detail

testOpenConnection

public void testOpenConnection()
                        throws Exception
Throws:
Exception - XX
See Also:
NagiosJmxPlugin.openConnection(JMXServiceURL, String, String)

testQuery

public void testQuery()
               throws Exception
Throws:
Exception - XX
See Also:
NagiosJmxPlugin.query(MBeanServerConnection, String, String, String)

testInvoke

public void testInvoke()
                throws Exception
Throws:
Exception - XX
See Also:
NagiosJmxPlugin.invoke(MBeanServerConnection, String, String)

testMockMBean

public void testMockMBean()
                   throws Exception
Test MockMBean.

Throws:
Exception - XX

testExecute

public void testExecute()
                 throws Exception
Throws:
Exception - XX
See Also:
NagiosJmxPlugin.execute(Properties)

testParseAsNumber

public void testParseAsNumber()
                       throws NagiosJmxPluginException
Test NagiosJmxPlugin.parseAsNumber().

Throws:
NagiosJmxPluginException - XX.

testGetThresholdLimits

public void testGetThresholdLimits()
                            throws NagiosJmxPluginException
Test NagiosJmxPlugin.getThresholdLimits().

Throws:
NagiosJmxPluginException - XX.

testThresholdRanges

public void testThresholdRanges()
                         throws Exception
Test threshold ranges.

Throws:
Exception - XX.

testThresholdWarning

public void testThresholdWarning()
                          throws Exception
Test threshold warning.

Throws:
Exception - XX

testThresholdCritical

public void testThresholdCritical()
                           throws Exception
Test threshold critical.

Throws:
Exception - XX

testThresholdWarningCritical

public void testThresholdWarningCritical()
                                  throws Exception
Test threshold warning/critical.

Throws:
Exception - XX

testThresholdRegex

public void testThresholdRegex()
                        throws Exception
Test threshold regex.

Throws:
Exception - XX

testObjectNamePattern

public void testObjectNamePattern()
                           throws Exception
Test object name pattern.

Throws:
Exception - XX

testMultipleObjectNamePatternFail

public void testMultipleObjectNamePatternFail()
                                       throws Exception
Test result for multiple matches of object name pattern.

Throws:
Exception - XX

testUnknownUnit

public void testUnknownUnit()
                     throws Exception
Test object name pattern.

Throws:
Exception - XX


Copyright © 2009-2011 Syabru. All Rights Reserved.