public class JMSConnectionTester extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JMSConnectionTester.DummyServer |
Constructor and Description |
---|
JMSConnectionTester() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
tearDown() |
void |
testFakeJMSConnection()
Test that asking for a fake JMSConnection actually gets you just that.
|
void |
testGetConsumerKey() |
void |
testInitConnection()
Tests that initconnection actually starts a topic connection and a queue connection.
|
void |
testReply() |
void |
testResendArgumentsNotNull()
Test resend() methods arguments.
|
void |
testResendCorrectSendBehaviour()
Test the resend method.
|
void |
testSendToQueue() |
void |
testSendToTopic() |
void |
testSetListener() |
void |
testUnpackInvalidPayload()
Tests for correct error handling if ObjectMessage has the wrong payload.
|
void |
testUnpackOfCorrectPayload()
Tests if correct payload is unwrapped.
|
void |
testUnpackParameterIsAnObjectMessage()
Tests for wrong parameters.
|
void |
testUnpackParameterIsNull()
Tests for null parameters.
|
public JMSConnectionTester()
public void setUp()
public void tearDown()
public void testFakeJMSConnection()
public void testUnpackParameterIsNull()
public void testUnpackParameterIsAnObjectMessage()
public void testUnpackInvalidPayload()
public void testUnpackOfCorrectPayload()
public void testResendArgumentsNotNull()
public void testResendCorrectSendBehaviour()
public void testInitConnection() throws Exception
Exception
- On failurespublic void testSendToQueue() throws javax.jms.JMSException, NoSuchFieldException, IllegalAccessException
javax.jms.JMSException
NoSuchFieldException
IllegalAccessException
public void testSendToTopic() throws javax.jms.JMSException, NoSuchFieldException, IllegalAccessException
javax.jms.JMSException
NoSuchFieldException
IllegalAccessException
public void testSetListener() throws javax.jms.JMSException, NoSuchFieldException, IllegalAccessException
javax.jms.JMSException
NoSuchFieldException
IllegalAccessException
public void testGetConsumerKey() throws NoSuchMethodException, IllegalAccessException
public void testReply() throws javax.jms.JMSException, NoSuchFieldException, IllegalAccessException
javax.jms.JMSException
NoSuchFieldException
IllegalAccessException
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.