|
||||||||||
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.apache.qpid.test.utils.QpidTestCase
org.apache.qpid.server.util.InternalBrokerBaseCase
org.apache.qpid.server.failover.FailoverMethodTest
public class FailoverMethodTest
Field Summary | |
---|---|
protected static org.slf4j.Logger |
_logger
|
Fields inherited from class org.apache.qpid.test.utils.QpidTestCase |
---|
MEMORY_STORE_CLASS_NAME, MS_CLASS_NAME_KEY |
Constructor Summary | |
---|---|
FailoverMethodTest()
|
Method Summary | |
---|---|
void |
createBroker()
|
void |
onException(JMSException e)
|
void |
stopBroker()
|
void |
testFailoverRoundRobinDelay()
Test that the round robin method has the correct delays. |
void |
testFailoverSingleDelay()
|
void |
testNoFailover()
Test that setting 'nofailover' as the failover policy does not result in delays or connection attempts when the initial connection is lost. |
Methods inherited from class org.apache.qpid.server.util.InternalBrokerBaseCase |
---|
acknowledge, browse, checkStoreContents, configure, getChannel, getConfiguration, getConfigXml, getMessageStore, getQUEUE_NAME, getQueue, getRegistry, getSession, getVirtualHost, isStarted, publishMessages, setChannel, setConfiguration, setConfigXml, setMessageStore, setQUEUE_NAME, setQueue, setRegistry, setSession, setStarted, setUp, setVirtualHost, subscribe, tearDown |
Methods inherited from class org.apache.qpid.test.utils.QpidTestCase |
---|
getTestProfileMessageStoreClassName, run |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, 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, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final org.slf4j.Logger _logger
Constructor Detail |
---|
public FailoverMethodTest()
Method Detail |
---|
public void createBroker() throws Exception
createBroker
in class org.apache.qpid.server.util.InternalBrokerBaseCase
Exception
public void stopBroker()
stopBroker
in class org.apache.qpid.server.util.InternalBrokerBaseCase
public void testFailoverRoundRobinDelay() throws org.apache.qpid.url.URLSyntaxException, InterruptedException, JMSException
org.apache.qpid.url.URLSyntaxException
InterruptedException
JMSException
public void testFailoverSingleDelay() throws org.apache.qpid.url.URLSyntaxException, org.apache.qpid.client.vmbroker.AMQVMBrokerCreationException, InterruptedException, JMSException
org.apache.qpid.url.URLSyntaxException
org.apache.qpid.client.vmbroker.AMQVMBrokerCreationException
InterruptedException
JMSException
public void onException(JMSException e)
onException
in interface ExceptionListener
public void testNoFailover() throws org.apache.qpid.url.URLSyntaxException, org.apache.qpid.client.vmbroker.AMQVMBrokerCreationException, InterruptedException, JMSException
org.apache.qpid.url.URLSyntaxException
org.apache.qpid.client.vmbroker.AMQVMBrokerCreationException
InterruptedException
JMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |