jade.jademx.mbean
Class JadeBaseTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by jade.jademx.mbean.JadeBaseTest
All Implemented Interfaces:
junit.framework.Test

public class JadeBaseTest
extends junit.framework.TestCase

JadeAgent MBean test

Author:
David Bernstein, Caboodle Networks, Inc.

Nested Class Summary
private  class JadeBaseTest.JadeNil
          a class for testing bare JadeBAse
 
Field Summary
private  jade.jademx.server.JadeMXServer jadeMXServer
          jadeMXServer we're using
private  JadeBaseTest.JadeNil jadeNil
          instantiated version of JadeBase
private  javax.management.MBeanServer mBeanServer
          ...
 
Constructor Summary
JadeBaseTest()
           
 
Method Summary
protected  void setUp()
           
static junit.framework.Test suite()
          return the implicit suite of tests
protected  void tearDown()
           
 void testJadeBaseAddNullNotificationInfoTwice()
          exercise JadeBase.addNotificationInfo()
 void testJadeBaseGetBadAttributes()
          try to get non-existent attributes
 void testJadeBaseGetNoAttributes()
          try getting empty attribute list
 void testJadeBaseInvoke()
          exercise JadeBase.invoke()
 void testJadeBasePreRegister()
          test JadeBase.preRegister()
 void testJadeBaseSetBadAttributes()
          try to set non-existent attributes
 void testJadeBaseSetEmptyNotificationInfo()
          exercise JadeBase.setNotificationInfo(null)
 void testJadeBaseSetNullNotificationInfo()
          exercise JadeBase.setNotificationInfo(null)
 void testJadeBaseUnregisteredToString()
          test getting mbean name when not registered
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jadeMXServer

private jade.jademx.server.JadeMXServer jadeMXServer
jadeMXServer we're using


mBeanServer

private javax.management.MBeanServer mBeanServer
...


jadeNil

private JadeBaseTest.JadeNil jadeNil
instantiated version of JadeBase

Constructor Detail

JadeBaseTest

public JadeBaseTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testJadeBasePreRegister

public void testJadeBasePreRegister()
                             throws java.lang.Exception
test JadeBase.preRegister()

Throws:
JademxException - unexpected problems with jademx
java.lang.Exception

testJadeBaseSetNullNotificationInfo

public void testJadeBaseSetNullNotificationInfo()
exercise JadeBase.setNotificationInfo(null)


testJadeBaseSetEmptyNotificationInfo

public void testJadeBaseSetEmptyNotificationInfo()
exercise JadeBase.setNotificationInfo(null)


testJadeBaseAddNullNotificationInfoTwice

public void testJadeBaseAddNullNotificationInfoTwice()
exercise JadeBase.addNotificationInfo()


testJadeBaseGetBadAttributes

public void testJadeBaseGetBadAttributes()
try to get non-existent attributes


testJadeBaseUnregisteredToString

public void testJadeBaseUnregisteredToString()
test getting mbean name when not registered


testJadeBaseGetNoAttributes

public void testJadeBaseGetNoAttributes()
try getting empty attribute list


testJadeBaseSetBadAttributes

public void testJadeBaseSetBadAttributes()
try to set non-existent attributes


testJadeBaseInvoke

public void testJadeBaseInvoke()
                        throws javax.management.MBeanException
exercise JadeBase.invoke()

Throws:
javax.management.MBeanException

suite

public static junit.framework.Test suite()
return the implicit suite of tests

Returns:
the implicit suite of tests


Copyright © 2005-2006 Caboodle Networks, Inc.
LGPL license