diff options
Diffstat (limited to 'java/common/src/test/java/org/apache/qpid/AMQExceptionTest.java')
-rw-r--r-- | java/common/src/test/java/org/apache/qpid/AMQExceptionTest.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/java/common/src/test/java/org/apache/qpid/AMQExceptionTest.java b/java/common/src/test/java/org/apache/qpid/AMQExceptionTest.java index f65427e583..ef6cd41492 100644 --- a/java/common/src/test/java/org/apache/qpid/AMQExceptionTest.java +++ b/java/common/src/test/java/org/apache/qpid/AMQExceptionTest.java @@ -23,7 +23,6 @@ package org.apache.qpid; import junit.framework.TestCase; import org.apache.qpid.protocol.AMQConstant; import org.apache.qpid.framing.AMQFrameDecodingException; -import org.apache.qpid.framing.AMQShortString; /** * This test is to ensure that when an AMQException is rethrown that the specified exception is correctly wrapped up. @@ -92,18 +91,6 @@ public class AMQExceptionTest extends TestCase return amqe; } - public void testGetMessageAsString() - { - StringBuilder sb = new StringBuilder(); - for (int i = 0; i < 25; i++) - { - sb.append("message [" + i + "]"); - } - AMQException e = new AMQException(AMQConstant.INTERNAL_ERROR, sb.toString(), null); - AMQShortString message = e.getMessageAsShortString(); - assertEquals(sb.substring(0, AMQShortString.MAX_LENGTH - 3) + "...", message.toString()); - } - /** * Private class that extends AMQException but does not have a default exception. */ |