jade.jademx.unit
Class UnitTestingTest

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

public class UnitTestingTest
extends junit.framework.TestCase

unit testing test

Author:
David Bernstein, Caboodle Networks, Inc.

Field Summary
private static java.lang.String expectMsg
          message to expect
private static java.lang.String INJECT_REPLY_ID
          reply-id used in message to inject
private static java.lang.String injectMsg
          message to inject
private  jade.util.Logger logger
          my logger
private  javax.management.MBeanServer mBeanServer
          MBeanServer being used
private static java.lang.String PINGEE_INJECT_AID
          AID for pingee agent in message to inject
private static java.lang.String PINGEE_LOCAL_NAME
          local name for pingee agent
private static java.lang.String PINGER_INJECT_AID
          AID for pinger agent in message to inject
private  jade.jademx.mbean.JadeRuntimeMBean runtime
          created JadeRuntimeMBean
private  javax.management.ObjectName runtimeON
          ObjectName for JadeRuntimeMBean
 
Constructor Summary
UnitTestingTest()
           
 
Method Summary
private  jade.jademx.config.jademx.onto.JademxConfig buildPingerPingeeAgentCfg()
          make a configuration for testing use programmatically
protected  void setUp()
           
static junit.framework.Test suite()
          return the implicit suite of tests
protected  void tearDown()
           
 void testComparisonCustomization()
          test that can turn on/off comparison for individual slot
 void testMissingExpect()
          test missing expect msg
 void testMissingInject()
          test missing inject msg
 void testUnitTest()
          test unit testing with calls via MBeanServer
 
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

logger

private final jade.util.Logger logger
my logger


INJECT_REPLY_ID

private static final java.lang.String INJECT_REPLY_ID
reply-id used in message to inject

See Also:
Constant Field Values

PINGEE_INJECT_AID

private static final java.lang.String PINGEE_INJECT_AID
AID for pingee agent in message to inject

See Also:
Constant Field Values

PINGER_INJECT_AID

private static final java.lang.String PINGER_INJECT_AID
AID for pinger agent in message to inject

See Also:
Constant Field Values

PINGEE_LOCAL_NAME

private static final java.lang.String PINGEE_LOCAL_NAME
local name for pingee agent

See Also:
Constant Field Values

injectMsg

private static final java.lang.String injectMsg
message to inject

See Also:
Constant Field Values

expectMsg

private static final java.lang.String expectMsg
message to expect

See Also:
Constant Field Values

mBeanServer

private javax.management.MBeanServer mBeanServer
MBeanServer being used


runtime

private jade.jademx.mbean.JadeRuntimeMBean runtime
created JadeRuntimeMBean


runtimeON

private javax.management.ObjectName runtimeON
ObjectName for JadeRuntimeMBean

Constructor Detail

UnitTestingTest

public UnitTestingTest()
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

buildPingerPingeeAgentCfg

private jade.jademx.config.jademx.onto.JademxConfig buildPingerPingeeAgentCfg()
make a configuration for testing use programmatically


testMissingExpect

public void testMissingExpect()
test missing expect msg


testMissingInject

public void testMissingInject()
test missing inject msg


testComparisonCustomization

public void testComparisonCustomization()
test that can turn on/off comparison for individual slot


testUnitTest

public void testUnitTest()
test unit testing with calls via MBeanServer


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