diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2009-02-13 11:22:14 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2009-02-13 11:22:14 +0000 |
| commit | 9b19b4a3d0b15ee73d7186302443c2fc4d8fab75 (patch) | |
| tree | dce82f763218366b5aa1527a4a57bed848d110c5 /java/broker/src/test | |
| parent | 2ecd30104c3f5619e7959d7a9f5695d9ec0975f7 (diff) | |
| download | qpid-python-9b19b4a3d0b15ee73d7186302443c2fc4d8fab75.tar.gz | |
QPID-1628 : Further tiding up of imports no longer requried.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@744076 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/broker/src/test')
| -rw-r--r-- | java/broker/src/test/java/org/apache/qpid/server/queue/MockContentChunk.java | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/java/broker/src/test/java/org/apache/qpid/server/queue/MockContentChunk.java b/java/broker/src/test/java/org/apache/qpid/server/queue/MockContentChunk.java new file mode 100644 index 0000000000..ee85fecfa3 --- /dev/null +++ b/java/broker/src/test/java/org/apache/qpid/server/queue/MockContentChunk.java @@ -0,0 +1,50 @@ +/* + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.qpid.server.queue; + +import org.apache.qpid.framing.abstraction.ContentChunk; +import org.apache.mina.common.ByteBuffer; + +public class MockContentChunk implements ContentChunk +{ + private ByteBuffer _bytebuffer; + private int _size; + + public MockContentChunk(ByteBuffer bytebuffer, int size) + { + _bytebuffer = bytebuffer; + _size = size; + } + + public int getSize() + { + return _size; + } + + public ByteBuffer getData() + { + return _bytebuffer; + } + + public void reduceToFit() + { + } +} |
