diff options
| author | Robert Godfrey <rgodfrey@apache.org> | 2014-08-09 16:05:05 +0000 |
|---|---|---|
| committer | Robert Godfrey <rgodfrey@apache.org> | 2014-08-09 16:05:05 +0000 |
| commit | c303d65ac74d5324b885da7cf7dbf655af8a93e2 (patch) | |
| tree | 55ef9bb4fa0dd091d84ad0c87cde63ae709e6513 /qpid/java/common/src/test | |
| parent | b52953d99d197049e34a8e05d033e9f44b44f353 (diff) | |
| download | qpid-python-c303d65ac74d5324b885da7cf7dbf655af8a93e2.tar.gz | |
QPID-4429 : [Java] Implement max frame size negotiation checks in 0-x protocols
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1616977 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/common/src/test')
| -rw-r--r-- | qpid/java/common/src/test/java/org/apache/qpid/codec/AMQDecoderTest.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/qpid/java/common/src/test/java/org/apache/qpid/codec/AMQDecoderTest.java b/qpid/java/common/src/test/java/org/apache/qpid/codec/AMQDecoderTest.java index cb820b333b..cd810f6b3d 100644 --- a/qpid/java/common/src/test/java/org/apache/qpid/codec/AMQDecoderTest.java +++ b/qpid/java/common/src/test/java/org/apache/qpid/codec/AMQDecoderTest.java @@ -21,6 +21,12 @@ package org.apache.qpid.codec; +import java.io.ByteArrayOutputStream; +import java.io.DataOutputStream; +import java.io.IOException; +import java.nio.ByteBuffer; +import java.util.ArrayList; + import junit.framework.TestCase; import org.apache.qpid.framing.AMQDataBlock; @@ -29,23 +35,15 @@ import org.apache.qpid.framing.AMQFrameDecodingException; import org.apache.qpid.framing.AMQProtocolVersionException; import org.apache.qpid.framing.HeartbeatBody; -import java.io.ByteArrayOutputStream; -import java.io.DataOutputStream; -import java.io.IOException; -import java.nio.ByteBuffer; -import java.util.ArrayList; - public class AMQDecoderTest extends TestCase { - private AMQCodecFactory _factory; private AMQDecoder _decoder; public void setUp() { - _factory = new AMQCodecFactory(false, null); - _decoder = _factory.getDecoder(); + _decoder = new AMQDecoder(false, null); } |
