summaryrefslogtreecommitdiff
path: root/qpid/java/client/src/test
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2007-02-20 09:16:59 +0000
committerMartin Ritchie <ritchiem@apache.org>2007-02-20 09:16:59 +0000
commitc19d997d6454ab95bc855ac1b79622721aad37fd (patch)
treef34911e087960924d0029c4d348d39a4397d4441 /qpid/java/client/src/test
parent08734bd260d7cee939b2a30a6ec1d87360632e11 (diff)
downloadqpid-python-c19d997d6454ab95bc855ac1b79622721aad37fd.tar.gz
Renamed AMQInvalidSelectorException to be AMQInvalidArgumentException to better fit the generic use of the argument table in the AMQP Queue.Bind spec. Adjusted AMQConstant to match the proposal for additional codes AMQP-39,40,41 (https://wiki.108.redhat.com/jira/browse/AMQP-39).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@509478 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/src/test')
-rw-r--r--qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/channelclose/ChannelCloseMethodHandlerNoCloseOk.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/channelclose/ChannelCloseMethodHandlerNoCloseOk.java b/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/channelclose/ChannelCloseMethodHandlerNoCloseOk.java
index e70196dff2..5e45d1d537 100644
--- a/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/channelclose/ChannelCloseMethodHandlerNoCloseOk.java
+++ b/qpid/java/client/src/test/java/org/apache/qpid/test/unit/client/channelclose/ChannelCloseMethodHandlerNoCloseOk.java
@@ -29,9 +29,9 @@ import org.apache.qpid.client.AMQNoRouteException;
import org.apache.qpid.protocol.AMQMethodEvent;
import org.apache.qpid.protocol.AMQConstant;
import org.apache.qpid.AMQException;
-import org.apache.qpid.AMQInvalidSelectorException;
import org.apache.qpid.AMQInvalidRoutingKeyException;
import org.apache.qpid.AMQChannelClosedException;
+import org.apache.qpid.AMQInvalidArgumentException;
import org.apache.qpid.framing.ChannelCloseBody;
import org.apache.qpid.framing.AMQShortString;
@@ -73,11 +73,11 @@ public class ChannelCloseMethodHandlerNoCloseOk implements StateAwareMethodListe
{
throw new AMQNoRouteException("Error: " + reason, null);
}
- else if (errorCode == AMQConstant.INVALID_SELECTOR)
+ else if (errorCode == AMQConstant.INVALID_ARGUMENT)
{
- _logger.debug("Broker responded with Invalid Selector.");
+ _logger.debug("Broker responded with Invalid Argument.");
- throw new AMQInvalidSelectorException(String.valueOf(reason));
+ throw new AMQInvalidArgumentException(String.valueOf(reason));
}
else if (errorCode == AMQConstant.INVALID_ROUTING_KEY)
{