jade.jademx.mbean
Class JadePlatformTest

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

public class JadePlatformTest
extends junit.framework.TestCase

JadePlatform MBean test

Author:
David Bernstein, Caboodle Networks, Inc.

Field Summary
private static java.lang.String AGENT_LOCAL_NAME_BAD
          intentionally non-existent agent name
private static java.lang.String AGENT_LOCAL_NAME_PINGER1
          name for 1st ping agent
private static java.lang.String AGENT_LOCAL_NAME_PINGER2
          name for 2nd ping agent
private static java.lang.String BAD_CLASS_NAME
          intentionally non-existent class name
private static java.lang.String EMPTY_PLATFORM_CONFIG_RESOURCE
          resource name for configuration of one empty platform
private  jade.jademx.server.JadeMXServer jadeMXServer
          jadeMXServer we're using
private  jade.jademx.mbean.JadeRuntime jadeRuntime
          runtime for test use
private static java.lang.String TWO_PING_CONFIG_RESOURCE
          resource name for configuration of two ping agents
 
Constructor Summary
JadePlatformTest()
           
 
Method Summary
protected  void setUp()
           
static junit.framework.Test suite()
          return the implicit suite of tests
protected  void tearDown()
           
 void testAgentCreateReturnName()
          test JadePlatform.createNewAgentReturnName()
 void testAgentNameRetrieval()
          test agent name retrieval
 void testGetJadeRuntime()
          test getting platform's runtime
 void testPlatformInitialState()
          test that platform begins life in ready state
 void testThreadInfo()
          test getting thread information about a platform
 
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


jadeRuntime

private jade.jademx.mbean.JadeRuntime jadeRuntime
runtime for test use


EMPTY_PLATFORM_CONFIG_RESOURCE

private static final java.lang.String EMPTY_PLATFORM_CONFIG_RESOURCE
resource name for configuration of one empty platform

See Also:
Constant Field Values

TWO_PING_CONFIG_RESOURCE

private static final java.lang.String TWO_PING_CONFIG_RESOURCE
resource name for configuration of two ping agents

See Also:
Constant Field Values

AGENT_LOCAL_NAME_PINGER1

private static final java.lang.String AGENT_LOCAL_NAME_PINGER1
name for 1st ping agent

See Also:
Constant Field Values

AGENT_LOCAL_NAME_PINGER2

private static final java.lang.String AGENT_LOCAL_NAME_PINGER2
name for 2nd ping agent

See Also:
Constant Field Values

AGENT_LOCAL_NAME_BAD

private static final java.lang.String AGENT_LOCAL_NAME_BAD
intentionally non-existent agent name

See Also:
Constant Field Values

BAD_CLASS_NAME

private static final java.lang.String BAD_CLASS_NAME
intentionally non-existent class name

See Also:
Constant Field Values
Constructor Detail

JadePlatformTest

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

testGetJadeRuntime

public void testGetJadeRuntime()
                        throws jade.jademx.mbean.JademxException
test getting platform's runtime

Throws:
JademxException - some unexpected error

testThreadInfo

public void testThreadInfo()
                    throws jade.jademx.mbean.JademxException
test getting thread information about a platform

Throws:
JademxException - some unexpected error

testPlatformInitialState

public void testPlatformInitialState()
                              throws jade.jademx.mbean.JademxException
test that platform begins life in ready state

Throws:
JademxException - some unexpected error

testAgentNameRetrieval

public void testAgentNameRetrieval()
                            throws jade.jademx.mbean.JademxException
test agent name retrieval

Throws:
JademxException - some unexpected error

testAgentCreateReturnName

public void testAgentCreateReturnName()
                               throws jade.jademx.mbean.JademxException
test JadePlatform.createNewAgentReturnName()

Throws:
JademxException - some unexpected error

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