From c303d65ac74d5324b885da7cf7dbf655af8a93e2 Mon Sep 17 00:00:00 2001 From: Robert Godfrey Date: Sat, 9 Aug 2014 16:05:05 +0000 Subject: 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 --- .../test/java/org/apache/qpid/codec/AMQDecoderTest.java | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'qpid/java/common/src/test') 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); } -- cgit v1.2.1