|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.xmlBlaster.test.stress.RamTest
This client publishes 1000 different messages to measure RAM consumption/message.
The RAM consumption in kByte/Message is logged to the console.
Note that this is the net RAM consumption, without any content and a very small XmlKey.
You may see this as the internal memory overhead in xmlBlaster for each published message.
This client may be invoked multiple time on the same xmlBlaster server,
as it cleans up everything after his tests are done.
Invoke examples:
java junit.textui.TestRunner org.xmlBlaster.test.stress.RamTest
java junit.swingui.TestRunner org.xmlBlaster.test.stress.RamTest
| Field Summary | |
private java.lang.String |
contentMime
|
private java.lang.String |
contentMimeExtended
|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private int |
numPublish
|
private I_XmlBlasterAccess |
senderConnection
|
private java.lang.String |
senderContent
|
private java.lang.String |
senderName
|
private StopWatch |
stopWatch
|
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
RamTest()
Constructor for Junit |
|
RamTest(Global glob,
java.lang.String testName,
java.lang.String loginName,
int numPublish)
Constructs the RamTest object. |
|
| Method Summary | |
void |
doPublish()
TEST: Construct a message and publish it. |
static void |
main(java.lang.String[] args)
Deprecated. Use the TestRunner from the testsuite to run it: java -Djava.compiler= junit.textui.TestRunner org.xmlBlaster.test.stress.RamTest |
protected void |
setUp()
Sets up the fixture. |
static junit.framework.Test |
suite()
Method is used by TestRunner to load these tests |
protected void |
tearDown()
Tears down the fixture. |
void |
testManyPublish()
TEST: Construct 1000 messages and publish it. |
| 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 final Global glob
private static java.util.logging.Logger log
private StopWatch stopWatch
private I_XmlBlasterAccess senderConnection
private java.lang.String senderName
private java.lang.String senderContent
private final int numPublish
private final java.lang.String contentMime
private final java.lang.String contentMimeExtended
| Constructor Detail |
public RamTest()
public RamTest(Global glob,
java.lang.String testName,
java.lang.String loginName,
int numPublish)
testName - The name used in the test suiteloginName - The name to login to the xmlBlasternumPublish - The number of messages to send| Method Detail |
protected void setUp()
protected void tearDown()
public void doPublish()
public void testManyPublish()
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
java -Djava.compiler= junit.textui.TestRunner org.xmlBlaster.test.stress.RamTest
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||