jade.jademx.mbean
Class JadeFactoryTest

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

public class JadeFactoryTest
extends junit.framework.TestCase

JadeRuntime MBean test

Author:
David Bernstein, Caboodle Networks, Inc.

Field Summary
private  jade.jademx.server.JadeMXServer jadeMXServer
          the JadeMXServer
private static java.lang.String RUNTIME_NAME_DEFAULT
          default name property for runtime instance, must match factory's
private static java.lang.String THREAD_GROUP_DEFAULT_NAME
          default name for thread group, must match that in JadeFactory
 
Constructor Summary
JadeFactoryTest()
           
 
Method Summary
private  void doIt(jade.jademx.mbean.JadeFactory jadeFactory, java.lang.String domain, java.lang.String runtimeName, java.lang.String threadGroupName)
          guts of testing a factory
protected  void setUp()
           
static junit.framework.Test suite()
          return the implicit suite of tests
 void testDefaultFactory()
          Test using default JadeFactory
 void testFactorySpecifyingDomain()
          Test using JadeFactory specifying object domain
 void testFactorySpecifyingDomainRuntime()
          Test using JadeFactory specifying object domain and thread group
 void testFactorySpecifyingDomainRuntimeThreadGroup()
          Test using JadeFactory specifying object domain and thread group
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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
the JadeMXServer


THREAD_GROUP_DEFAULT_NAME

private static final java.lang.String THREAD_GROUP_DEFAULT_NAME
default name for thread group, must match that in JadeFactory

See Also:
Constant Field Values

RUNTIME_NAME_DEFAULT

private static final java.lang.String RUNTIME_NAME_DEFAULT
default name property for runtime instance, must match factory's

See Also:
Constant Field Values
Constructor Detail

JadeFactoryTest

public JadeFactoryTest()
Method Detail

setUp

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

doIt

private void doIt(jade.jademx.mbean.JadeFactory jadeFactory,
                  java.lang.String domain,
                  java.lang.String runtimeName,
                  java.lang.String threadGroupName)
guts of testing a factory

Parameters:
jadeFactory - factory to test
domain - expected object name domain for factory
runtimeName - expected runtimeName for factory
threadGroupName - expected threadGroupName for factory

testDefaultFactory

public void testDefaultFactory()
Test using default JadeFactory


testFactorySpecifyingDomain

public void testFactorySpecifyingDomain()
Test using JadeFactory specifying object domain


testFactorySpecifyingDomainRuntime

public void testFactorySpecifyingDomainRuntime()
Test using JadeFactory specifying object domain and thread group


testFactorySpecifyingDomainRuntimeThreadGroup

public void testFactorySpecifyingDomainRuntimeThreadGroup()
Test using JadeFactory specifying object domain and thread group


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