|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
jade.jademx.mbean.JadeRuntimeTest
public class JadeRuntimeTest
JadeRuntime MBean test
Field Summary | |
---|---|
private static java.lang.String |
BAD_CONFIG_RESOURCE
resource name for configuration with bad XML |
private static java.lang.String |
BAD_CONFIG_RESOURCE_MULTICFG
resource name for configuration with bad XML: multiple jademx-config elements |
private static java.lang.String |
BAD_CONFIG_RESOURCE_MULTIRUNTIME
resource name for configuration with bad XML: multiple runtime elements |
private static java.lang.String |
BAD_CONFIG_RESOURCE_NOCFG
resource name for configuration with bad XML: zero jademx-config elements |
private static java.lang.String |
EMPTY_CONFIG_RESOURCE
resource name for configuration of one empty configuration |
private static java.lang.String |
EMPTY_PLATFORM_CONFIG_RESOURCE
resource name for configuration of one empty platform |
private static java.lang.String |
EMPTY_PLATFORM_NOMTP_CONFIG_RESOURCE
resource name for configuration of one empty platform |
private static java.lang.String |
JADEMX_BUNDLE_NAME
jademx resource bundle name |
private static java.lang.String |
JADEMX_CVS_DATE_PROP
name of jademx cvs date property |
private static java.lang.String |
JADEMX_MAJOR_VERSION_PROP
name of jademx major version property |
private static java.lang.String |
JADEMX_MINOR_VERSION_PROP
name of jademx minor version property |
private static java.lang.String |
JADEMX_PATCH_VERSION_PROP
name of jademx patch version property |
private jade.jademx.server.JadeMXServer |
jadeMXServer
jadeMXServer we're using |
private jade.jademx.mbean.JadeRuntimeMBean |
jadeRuntime
JadeRuntime created by setUp() |
private static java.lang.String |
name
test(suite) name |
private static java.lang.String |
NONEXISTENT_CONFIG_RESOURCE
resource name for configuration that doesn't exist |
private static java.lang.String |
TWO_PING_CONFIG_RESOURCE
resource name for configuration of two ping agents |
Constructor Summary | |
---|---|
JadeRuntimeTest()
make TestCase for JadeRuntime |
Method Summary | |
---|---|
private java.lang.String |
cvsDateToTimestamp(java.lang.String cvsDate)
convert cvs-style date/time string to iso 8601 timestamp |
private void |
runTestOneEmptyPlatform(boolean isUrl,
boolean returnMBean)
run test of instantiating one empty platform |
protected void |
setUp()
|
static junit.framework.Test |
suite()
return the implicit suite of tests |
protected void |
tearDown()
|
void |
testBadConfig()
test trying to use a configuration with bad XML |
void |
testBadConfigMultiCfg()
test trying to use a configuration with bad XML: multiple configurations |
void |
testBadConfigMultiRuntime()
test trying to use a configuration with bad XML: multiple runtimes |
void |
testBadConfigNoCfg()
test trying to use a configuration with bad XML: zero configurations |
void |
testBadConfigURL()
test trying to use a badly formatted url for configuration |
void |
testEmptyConfig()
try testing empty configuration |
void |
testEmptyPlatformNoMTP()
try testing empty platform with NOMTP specified |
void |
testGetCopyrightNotice()
test runtime copyright notice |
void |
testGetJademxTimestamp()
test jademx timestamp |
void |
testGetJademxVersion()
test jademx version |
void |
testGetVersion()
test runtime version |
void |
testGetVersionInfo()
test runtime version information |
void |
testGetVersionTimestamp()
test runtime version timestamp |
void |
testNonExistentConfig()
test trying to use a configuration that doesn't exist |
void |
testOneEmptyPlatformResource()
test creating a single empty platform from config spec'd by resource. |
void |
testOneEmptyPlatformResourceName()
test getting platform name from config specified by java resource |
void |
testOneEmptyPlatformURL()
test creating a single empty platform from config spec'd by URL |
void |
testOneEmptyPlatformURLName()
test getting platform name from config specified by java URL |
void |
testTwoAgentPlatformXML()
test intantiating a platform with two agents via XML |
private void |
verifyTwoAgentPlatform(jade.jademx.mbean.JadePlatform[] platformMBeans)
verify the platform with two agents |
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 |
---|
private static java.lang.String name
private jade.jademx.mbean.JadeRuntimeMBean jadeRuntime
private jade.jademx.server.JadeMXServer jadeMXServer
private static final java.lang.String JADEMX_BUNDLE_NAME
private static final java.lang.String JADEMX_MAJOR_VERSION_PROP
private static final java.lang.String JADEMX_MINOR_VERSION_PROP
private static final java.lang.String JADEMX_PATCH_VERSION_PROP
private static final java.lang.String JADEMX_CVS_DATE_PROP
private static final java.lang.String EMPTY_CONFIG_RESOURCE
private static final java.lang.String EMPTY_PLATFORM_CONFIG_RESOURCE
private static final java.lang.String EMPTY_PLATFORM_NOMTP_CONFIG_RESOURCE
private static final java.lang.String TWO_PING_CONFIG_RESOURCE
private static final java.lang.String NONEXISTENT_CONFIG_RESOURCE
private static final java.lang.String BAD_CONFIG_RESOURCE
private static final java.lang.String BAD_CONFIG_RESOURCE_MULTICFG
private static final java.lang.String BAD_CONFIG_RESOURCE_NOCFG
private static final java.lang.String BAD_CONFIG_RESOURCE_MULTIRUNTIME
Constructor Detail |
---|
public JadeRuntimeTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void testGetCopyrightNotice()
public void testGetVersionInfo()
public void testGetVersion()
public void testGetVersionTimestamp()
public void testGetJademxVersion()
public void testGetJademxTimestamp()
private java.lang.String cvsDateToTimestamp(java.lang.String cvsDate)
cvsDate
- date to convert
private void runTestOneEmptyPlatform(boolean isUrl, boolean returnMBean)
isUrl
- true iff configuration specified by URL, else resourcereturnMBean
- true iff want MBean back, else MBean's namepublic void testOneEmptyPlatformResource()
public void testOneEmptyPlatformResourceName()
public void testOneEmptyPlatformURL()
public void testOneEmptyPlatformURLName()
public void testNonExistentConfig()
public void testBadConfigURL()
public void testBadConfig()
public void testBadConfigMultiCfg()
public void testBadConfigNoCfg()
public void testBadConfigMultiRuntime()
private void verifyTwoAgentPlatform(jade.jademx.mbean.JadePlatform[] platformMBeans)
platformMBeans
- public void testTwoAgentPlatformXML()
public void testEmptyConfig()
public void testEmptyPlatformNoMTP()
public static junit.framework.Test suite()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |