|
xmlBlaster 2.2.0 API | |||||||||
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 org.xmlBlaster.test.client.TestSynchronousCache
public class TestSynchronousCache
Here we test the client side synchronous cache for high performing getCached() invocations.
Invoke examples:
java junit.textui.TestRunner org.xmlBlaster.test.client.TestSynchronousCache java junit.swingui.TestRunner -noloading org.xmlBlaster.test.client.TestSynchronousCache
SynchronousCache
Field Summary | |
---|---|
private I_XmlBlasterAccess |
con
|
private java.lang.String[] |
contentArr
|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private java.lang.String[] |
publishOidArr
|
private int |
serverPort
|
private EmbeddedXmlBlaster |
serverThread
|
private boolean |
startEmbedded
|
private SynchronousCache |
synchronousCache
|
private MsgInterceptor |
updateInterceptor
|
Constructor Summary | |
---|---|
TestSynchronousCache(Global glob,
java.lang.String testName)
Constructs the TestSynchronousCache object. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Invoke: java org.xmlBlaster.test.client.TestSynchronousCache -startEmbedded false |
PublishReturnQos |
publishMsg(java.lang.String publishOid,
java.lang.String content)
Publish an almost volatile message. |
EraseReturnQos[] |
sendErase(java.lang.String publishOid)
|
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 |
testCachedAccess()
THIS IS THE TEST |
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 Global glob
private static java.util.logging.Logger log
private I_XmlBlasterAccess con
private MsgInterceptor updateInterceptor
private EmbeddedXmlBlaster serverThread
private int serverPort
private boolean startEmbedded
private SynchronousCache synchronousCache
private java.lang.String[] publishOidArr
private java.lang.String[] contentArr
Constructor Detail |
---|
public TestSynchronousCache(Global glob, java.lang.String testName)
testName
- The name used in the test suiteloginName
- The name to login to the xmlBlasterMethod Detail |
---|
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
in class junit.framework.TestCase
public EraseReturnQos[] sendErase(java.lang.String publishOid)
public PublishReturnQos publishMsg(java.lang.String publishOid, java.lang.String content)
public void testCachedAccess()
We publish some messages and try cached access.
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |