|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase jade.jademx.mbean.JadeFactoryTest
public class JadeFactoryTest
JadeRuntime MBean test
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 |
---|
private jade.jademx.server.JadeMXServer jadeMXServer
private static final java.lang.String THREAD_GROUP_DEFAULT_NAME
private static final java.lang.String RUNTIME_NAME_DEFAULT
Constructor Detail |
---|
public JadeFactoryTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
private void doIt(jade.jademx.mbean.JadeFactory jadeFactory, java.lang.String domain, java.lang.String runtimeName, java.lang.String threadGroupName)
jadeFactory
- factory to testdomain
- expected object name domain for factoryruntimeName
- expected runtimeName for factorythreadGroupName
- expected threadGroupName for factorypublic void testDefaultFactory()
public void testFactorySpecifyingDomain()
public void testFactorySpecifyingDomainRuntime()
public void testFactorySpecifyingDomainRuntimeThreadGroup()
public static junit.framework.Test suite()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |