summaryrefslogtreecommitdiff
path: root/java/client/src/old_test
diff options
context:
space:
mode:
authorRobert Greig <rgreig@apache.org>2007-01-07 23:11:53 +0000
committerRobert Greig <rgreig@apache.org>2007-01-07 23:11:53 +0000
commit26d0286ef84e00fd27206b5e23aff5c54309a975 (patch)
treeb3ffd1ef57cbbc31faaf95466f91418421d44032 /java/client/src/old_test
parent189816d88cc72f1053a7e7685b18883669c53d57 (diff)
downloadqpid-python-26d0286ef84e00fd27206b5e23aff5c54309a975.tar.gz
QPID-32: new model for holding and processing message in memory to support new persistent stores
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@493872 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/src/old_test')
-rw-r--r--java/client/src/old_test/java/org/apache/qpid/codec/BasicDeliverTest.java6
-rw-r--r--java/client/src/old_test/java/org/apache/qpid/framing/FieldTableTest.java13
-rw-r--r--java/client/src/old_test/java/org/apache/qpid/requestreply1/VmRequestReply.java11
-rw-r--r--java/client/src/old_test/java/org/apache/qpid/test/unit/jndi/referenceabletest/JNDIReferenceableTest.java11
-rw-r--r--java/client/src/old_test/java/org/apache/qpid/weblogic/ServiceRequestingClient.java17
5 files changed, 22 insertions, 36 deletions
diff --git a/java/client/src/old_test/java/org/apache/qpid/codec/BasicDeliverTest.java b/java/client/src/old_test/java/org/apache/qpid/codec/BasicDeliverTest.java
index 892b349cea..1c616f0f02 100644
--- a/java/client/src/old_test/java/org/apache/qpid/codec/BasicDeliverTest.java
+++ b/java/client/src/old_test/java/org/apache/qpid/codec/BasicDeliverTest.java
@@ -7,9 +7,9 @@
* 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
@@ -254,7 +254,7 @@ public class BasicDeliverTest
static BasicDeliverBody createBasicDeliverBody()
{
- BasicDeliverBody body = new BasicDeliverBody();
+ BasicDeliverBody body = new BasicDeliverBody((byte)8, (byte)0);
body.consumerTag = "myConsumerTag";
body.deliveryTag = 1;
body.exchange = "myExchange";
diff --git a/java/client/src/old_test/java/org/apache/qpid/framing/FieldTableTest.java b/java/client/src/old_test/java/org/apache/qpid/framing/FieldTableTest.java
index 2a7cb8be30..e56e38c098 100644
--- a/java/client/src/old_test/java/org/apache/qpid/framing/FieldTableTest.java
+++ b/java/client/src/old_test/java/org/apache/qpid/framing/FieldTableTest.java
@@ -7,9 +7,9 @@
* 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
@@ -20,6 +20,7 @@
*/
package org.apache.qpid.framing;
+import junit.framework.TestCase;
import org.apache.mina.common.ByteBuffer;
import java.io.BufferedReader;
@@ -29,8 +30,6 @@ import java.io.Reader;
import java.util.Enumeration;
import java.util.Properties;
-import junit.framework.TestCase;
-
public class FieldTableTest extends TestCase
{
@@ -47,7 +46,7 @@ public class FieldTableTest extends TestCase
EncodingUtils.encodedLongStringLength(value);
assertEquals(table.getEncodedSize(), size);
-
+
key = "Integer";
Integer number = new Integer(60);
table.put(key, number);
@@ -87,7 +86,7 @@ public class FieldTableTest extends TestCase
doTestEncoding(load("FieldTableTest2.properties"));
}
*/
- void doTestEncoding(FieldTable table) throws AMQFrameDecodingException
+ void doTestEncoding(FieldTable table) throws AMQFrameDecodingException, AMQProtocolVersionException
{
assertEquivalent(table, encodeThenDecode(table));
}
@@ -102,7 +101,7 @@ public class FieldTableTest extends TestCase
}
}
- FieldTable encodeThenDecode(FieldTable table) throws AMQFrameDecodingException
+ FieldTable encodeThenDecode(FieldTable table) throws AMQFrameDecodingException, AMQProtocolVersionException
{
ContentHeaderBody header = new ContentHeaderBody();
header.classId = 6;
diff --git a/java/client/src/old_test/java/org/apache/qpid/requestreply1/VmRequestReply.java b/java/client/src/old_test/java/org/apache/qpid/requestreply1/VmRequestReply.java
index 56d1ce9b6d..a1577cffa5 100644
--- a/java/client/src/old_test/java/org/apache/qpid/requestreply1/VmRequestReply.java
+++ b/java/client/src/old_test/java/org/apache/qpid/requestreply1/VmRequestReply.java
@@ -7,9 +7,9 @@
* 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
@@ -20,12 +20,9 @@
*/
package org.apache.qpid.requestreply1;
-import org.apache.qpid.client.vmbroker.AMQVMBrokerCreationException;
-import org.apache.qpid.client.transport.TransportConnection;
-import org.apache.qpid.test.VMBrokerSetup;
-import org.apache.log4j.Logger;
-
import junit.framework.TestCase;
+import org.apache.log4j.Logger;
+import org.apache.qpid.testutil.VMBrokerSetup;
public class VmRequestReply extends TestCase
{
diff --git a/java/client/src/old_test/java/org/apache/qpid/test/unit/jndi/referenceabletest/JNDIReferenceableTest.java b/java/client/src/old_test/java/org/apache/qpid/test/unit/jndi/referenceabletest/JNDIReferenceableTest.java
index 4731caca98..8272b13c1d 100644
--- a/java/client/src/old_test/java/org/apache/qpid/test/unit/jndi/referenceabletest/JNDIReferenceableTest.java
+++ b/java/client/src/old_test/java/org/apache/qpid/test/unit/jndi/referenceabletest/JNDIReferenceableTest.java
@@ -7,9 +7,9 @@
* 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
@@ -20,15 +20,12 @@
*/
package org.apache.qpid.test.unit.jndi.referenceabletest;
-import org.apache.qpid.client.transport.TransportConnection;
-import org.apache.qpid.client.vmbroker.AMQVMBrokerCreationException;
-import org.apache.qpid.test.VMBrokerSetup;
+import junit.framework.TestCase;
+import org.apache.qpid.testutil.VMBrokerSetup;
import javax.naming.NameAlreadyBoundException;
import javax.naming.NoInitialContextException;
-import junit.framework.TestCase;
-
/**
* Usage: To run these you need to have the sun JNDI SPI for the FileSystem.
* This can be downloaded from sun here:
diff --git a/java/client/src/old_test/java/org/apache/qpid/weblogic/ServiceRequestingClient.java b/java/client/src/old_test/java/org/apache/qpid/weblogic/ServiceRequestingClient.java
index a1e15258c3..2f64a1dde5 100644
--- a/java/client/src/old_test/java/org/apache/qpid/weblogic/ServiceRequestingClient.java
+++ b/java/client/src/old_test/java/org/apache/qpid/weblogic/ServiceRequestingClient.java
@@ -7,9 +7,9 @@
* 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
@@ -20,20 +20,13 @@
*/
package org.apache.qpid.weblogic;
-import org.apache.qpid.jms.*;
import org.apache.log4j.Logger;
-import javax.naming.NamingException;
-import javax.naming.InitialContext;
-import javax.naming.Context;
import javax.jms.*;
-import javax.jms.MessageConsumer;
-import javax.jms.Session;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
import java.util.Hashtable;
-import java.io.File;
-import java.io.FilenameFilter;
-import java.io.Reader;
-import java.io.FileReader;
/**
* Created by IntelliJ IDEA.