summaryrefslogtreecommitdiff
path: root/qpid/java/client/src/test
Commit message (Collapse)AuthorAgeFilesLines
* QPID-282Martin Ritchie2007-01-121-1/+66
| | | | | | Updated AMQConnection and AMQBrokerDetails to check the host:port and add tcp:// if there is no protocol specified. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@495517 13f79535-47bb-0310-9956-ffa450edef68
* QPID-275 : (Patch supplied by Rob Godfrey) Fixes to allow broker to pass ↵Robert Greig2007-01-101-2/+2
| | | | | | more of the Python tests git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@494769 13f79535-47bb-0310-9956-ffa450edef68
* QPID-270 : (Patch supplied by Rob Godfrey) Change of use of ↵Robert Greig2007-01-091-1/+2
| | | | | | AMQConnectionException git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@494655 13f79535-47bb-0310-9956-ffa450edef68
* QPID-255 : Patch Supplied by Rob Godfrey - Change to use bespoke ↵Robert Greig2007-01-089-41/+48
| | | | | | AMQShortString rather than converting to String git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@494121 13f79535-47bb-0310-9956-ffa450edef68
* QPID-32: new model for holding and processing message in memory to support ↵Robert Greig2007-01-074-20/+56
| | | | | | new persistent stores git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@493872 13f79535-47bb-0310-9956-ffa450edef68
* QPID-229 Fixed spurious import in test classRobert Greig2006-12-221-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@489804 13f79535-47bb-0310-9956-ffa450edef68
* QPID-229 : Patch supplied by Rob Godfrey - Change implementation of FieldTableRobert Greig2006-12-221-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@489748 13f79535-47bb-0310-9956-ffa450edef68
* git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@489644 ↵Robert Greig2006-12-221-1/+4
| | | | 13f79535-47bb-0310-9956-ffa450edef68
* Maven output clean up.Martin Ritchie2006-12-192-7/+7
| | | | | | Mainly removed exception stack traces from expected exceptions. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@488713 13f79535-47bb-0310-9956-ffa450edef68
* QPID-21Martin Ritchie2006-12-191-0/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added: SelectorParser.jj - ActiveMQ selector javacc grammar used to generate SelectorParser.java server/filter - Selector Filtering code from ActiveMQ project adjusted to suite our class and package structure. server/message - Decorator classes to allow access to the JMSMessage inside the AMQMessage ConcurrentSelectorDeliveryManager.java - A new DeliveryManager that utilises PreDeliveryQueues to implement selectors AMQInvalidSelectorException.java - thrown on client and broker when the Selector text is invalid. Common: log4j.properties to remove error log4j warnings on Common tests. Modified: broker/pom.xml - to generate SelectorParser.java AMQChannel.java - Addition of argument fieldtable for filter setup. BasicConsumeMethodHandler.java - writing of InvalidSelector channel close exception. AMQMessage.java - Added decorator to get access to the enclosed JMSMessage AMQQueue.java - Enhanced 'deliverymanager' property to allow the selection of the ConcurrentSelectorDeliveryManager. Subscription.java - Enhanced interface to allow a subscription to state an 'interest' in a given message. SubscriptionFactory.java - Added method to allow passing of filter arguments. SubscriptionImpl.java - Implemented new Subscription.java methods. SubscriptionManager.java - Added ability to get a list of current subscribers. SubscriptionSet.java - augmented nextSubscriber to allow the subscriber to exert the new hasInterest feature. SynchronizedDeliveryManager.java - fixed Logging class AMQSession - Added filter extraction from consume call and pass it on to the registration. ChannelCloseMethodHandler.java - Handle the reception and correct raising of the InvalidSelector Exception AbstractJMSMessage.java - Expanded imports BlockingMethodFrameListener.java - added extra info to a debug output line. SocketTransportConnection.java - made output an info not a warn. PropertiesFileInitialContextFactory.java - updated to allow the PROVIDER_URL to specify a property file to read in for the initial values. ClusteredSubscriptionManager.java - Implementation of SubscriptionSet.java NestedSubscriptionManager.java - Implementation of SubscriptionManager.java RemoteSubscriptionImpl.java - Implementation Subscription.java AMQConstant.java - Added '322' "Invalid Selector" SubscriptionTestHelper.java - Implementation of Subscription.java Edited specs/amqp-8.0.xml to add field table to consume method. Thanks to the ActiveMQ project for writing the initial SelectorParser.jj and associated filter Expressions. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@488624 13f79535-47bb-0310-9956-ffa450edef68
* QPID-215 : Patch supplied by Rob Godfrey - Implement custom JMSX propertiesRobert Greig2006-12-191-0/+70
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@488596 13f79535-47bb-0310-9956-ffa450edef68
* clean up warnings about unused variablesStephen Vinoski2006-12-187-13/+8
| | | | | | | | Remove all warnings in common, broker, client, and systests regarding unused variables, as indicated by Eclipse builds. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@488450 13f79535-47bb-0310-9956-ffa450edef68
* QPID-212 QPID-214 Patch supplied by Rob GodfreyRobert Greig2006-12-182-14/+131
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@488377 13f79535-47bb-0310-9956-ffa450edef68
* QPID-209 : Patch supplied by Rob Godfrey - Fix acknowledge so it only ↵Robert Greig2006-12-181-0/+41
| | | | | | acknowledges messages that have actually been consumed git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@488159 13f79535-47bb-0310-9956-ffa450edef68
* remove unused importsStephen Vinoski2006-12-1813-34/+0
| | | | | | | | | Remove unused imports for common, broker, client, and systests as reported by Eclipse. Note that this includes imports in the Java XSL template used to generate the framing code in common. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@488134 13f79535-47bb-0310-9956-ffa450edef68
* QPID-207 : Patch supplied by Rob Godfrey - fix implementation of acknowledge ↵Robert Greig2006-12-161-10/+79
| | | | | | as per JMS spec git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@487903 13f79535-47bb-0310-9956-ffa450edef68
* QPID-206 : Fix byte buffer reseting in AbstractJMSMessageRobert Greig2006-12-162-4/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@487849 13f79535-47bb-0310-9956-ffa450edef68
* QPID-205 : Do not allow subscription to temporary topics created on a ↵Robert Greig2006-12-161-0/+13
| | | | | | different session. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@487821 13f79535-47bb-0310-9956-ffa450edef68
* QPID-204 : Implement TemporaryTopic.deleteRobert Greig2006-12-161-0/+39
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@487804 13f79535-47bb-0310-9956-ffa450edef68
* QPID-202 : Implement TemporaryQueue.deleteRobert Greig2006-12-161-0/+81
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@487801 13f79535-47bb-0310-9956-ffa450edef68
* QPID-201 : Fix to throw correct exception when getting char as null in ↵Robert Greig2006-12-161-0/+21
| | | | | | JMSMapMessage git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@487779 13f79535-47bb-0310-9956-ffa450edef68
* QPID-195 : Fix to JMSObjectMessage so that setObject(null) rteurns the ↵Robert Greig2006-12-161-0/+6
| | | | | | message to it's initial state (_data = null), for which getObject() correctly returns null. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@487778 13f79535-47bb-0310-9956-ffa450edef68
* QPID-183 Patch supplied by Rob Godfrey. Major changes to durable topic ↵Robert Greig2006-12-158-151/+262
| | | | | | subscription handling. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@487562 13f79535-47bb-0310-9956-ffa450edef68
* QPID-181 QPID-180Martin Ritchie2006-12-153-91/+337
| | | | | | | | | | | | | | AbstractJMSMessage.java - updated to use getJMSHeaders JMSMapMessage.java - JMSPropertyFieldTable.java - Moved functionality of setting and retrieving a JMS property. Now shared by the Headers and MapMessageTest.java MapMessageTest.java - Updated the exceptions that are caught as all methods should throw a JMSException i.e. MessageFormatException TextMessageTest.java - Added tests for the Message Properties common/pom.xml - Added JMS dependency for the JMSPropertyFieldTable.java and associated tests EncodingUtils.java - changed comments and changed getencodedCharLength return to an int PropertyFieldTable.java - Cleaned up and now uses enum for prefixs. Created comprehensive test of both PropertyFieldTable classes. AMQPInvalidClassException.java - created to throw a runtime exception when trying to add a non-primative value. Forcing clients to handle this would break the Map usage of the FieldTable. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@487481 13f79535-47bb-0310-9956-ffa450edef68
* QPID-193 Make createConsumer synchronous to avoid races in client code.Robert Greig2006-12-141-0/+67
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@487368 13f79535-47bb-0310-9956-ffa450edef68
* QPID-176 Patch supplied by Rob Godfrey. Check for topic is now more ↵Robert Greig2006-12-131-0/+75
| | | | | | sophisticated since simple null check is not adequate. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486731 13f79535-47bb-0310-9956-ffa450edef68
* QPID-177 Patch supplied by Rob Godfrey: adapter now calls the correct ↵Robert Greig2006-12-131-0/+94
| | | | | | createTextMessage overloaded method. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486722 13f79535-47bb-0310-9956-ffa450edef68
* QPID-149Martin Ritchie2006-12-131-4/+16
| | | | | | | | | replyTo destination was invalid when using TemporaryQueues as the getEncodingName was using a simple method for encoding the Destination. This has been updated to use a BindingURL as this is more transportable. getEncodingName removed from all AMQDestination subclasses and now is implemented in AMQDestination as a call to toURL() Created static Destination.createDestination(BindingURL) to create the correct destination from a BindingURL. PropertiesFileInitialContextFactory.java and AbstractJMSMessage.java updated to use this. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486647 13f79535-47bb-0310-9956-ffa450edef68
* QPID-175 Patch supplied by Rob Godfrey. Now allocates new autoexpanding ↵Robert Greig2006-12-131-1/+33
| | | | | | buffer for StreamMessage when clearBody is called git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486594 13f79535-47bb-0310-9956-ffa450edef68
* QPID-9Martin Ritchie2006-12-131-3/+1
| | | | | | | | Added ability to send NULL Strings. EncodingUtils.java now returns an empty string for a zero lengthed String. To send a null string use prefix 'n' MapMessageTest.java - Updated to test emptyString and nullString behave correctly. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486574 13f79535-47bb-0310-9956-ffa450edef68
* QPID-174 Fix submitted by Rob Godfrey. Now performs a flip() to ensure the ↵Robert Greig2006-12-122-14/+113
| | | | | | limit is set correctly. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486255 13f79535-47bb-0310-9956-ffa450edef68
* QPID-164Martin Ritchie2006-12-122-94/+1048
| | | | | | | | | | | JMSMapMessage.java - fixed incorrect exceptions and return values. Data now sent as a Bytes message. MapMessageTest.java - updated to be more through with the testing of the returned message EncodingUtils.java - added unsignedIntegerLength() FieldTableFactory.java - removed specific PropertyFieldTable reference PropertyFieldTable.java - fixed encoding issues that were causing BufferOverflow errors. PropertyFieldTableTest.java - added test to ensure that the encoding size is correct for ALL types. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486254 13f79535-47bb-0310-9956-ffa450edef68
* QPID-171 Patch supplied by Rob Godfrey to fix problem where close check for ↵Robert Greig2006-12-121-0/+70
| | | | | | publisher methods did not appear to be done. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486198 13f79535-47bb-0310-9956-ffa450edef68
* QPID-102: fixed reset(), null handling and readBytes() processing in ↵Robert Greig2006-12-121-20/+37
| | | | | | StreamMessage. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486118 13f79535-47bb-0310-9956-ffa450edef68
* complete client test reorganizationStephen Vinoski2006-12-123-73772/+46
| | | | | | | | * a couple more directory moves * remove inclusions and exclusions from surefire config in pom.xml git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486010 13f79535-47bb-0310-9956-ffa450edef68
* client test reorganizationStephen Vinoski2006-12-12100-10431/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486008 13f79535-47bb-0310-9956-ffa450edef68
* QPID-102: add type conversion logic in StreamMessage.Robert Greig2006-12-111-6/+171
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@485852 13f79535-47bb-0310-9956-ffa450edef68
* QPID-163 - attempting to change the client id results in an exception being ↵Robert Greig2006-12-091-3/+35
| | | | | | thrown. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@485020 13f79535-47bb-0310-9956-ffa450edef68
* QPID-102 Addition of StreamMessage supportRobert Greig2006-12-093-6/+589
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@484987 13f79535-47bb-0310-9956-ffa450edef68
* fix for QPID-116Stephen Vinoski2006-12-082-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@484843 13f79535-47bb-0310-9956-ffa450edef68
* Added line to check setPropertyNames as useful temp system Marnie McCormack2006-12-071-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@483424 13f79535-47bb-0310-9956-ffa450edef68
* Added setObjectProperty test for now, will refactor this class anonMarnie McCormack2006-12-071-10/+69
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@483423 13f79535-47bb-0310-9956-ffa450edef68
* FieldTable change.Martin Ritchie2006-12-058-51/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | FieldTable is now an interface with a PropertyFieldTable.java implementation. This PropertyFieldTable has been updated to handle the wire level encoding and decoding of the underlying map. It also allows XML encoding of the data as used by JMSMapMessage. Currently the AMQP doesn't support all the Java primitives as a result all values are written out as XML using a prefix of 'X'. (See QPID-9 for further details) Changes where not specified are changes from new FieldTable() to FieldTableFactory.newFieldTable() AbstractJMSMessage.java - the type prefixing of properties is now not requried as all the functionality has been moved to PropertyFieldTable.java. In addition set/getObjectProperty is now implemented as PFT does this. basic Tests have been updated to send all property values. FieldTableKeyEnumeration.java has been removed as it is nolonger required. The PFT handles this internally. ToDo: The Tests need to be consolidated so that there is a clear view of the code coverage. QPID-158 git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@482733 13f79535-47bb-0310-9956-ffa450edef68
* Changed JMSReplyTo Queue to test temporary queue values to verify QPID-149Martin Ritchie2006-12-041-2/+16
| | | | | | Worked ok. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@482243 13f79535-47bb-0310-9956-ffa450edef68
* QPID-148Martin Ritchie2006-12-041-0/+243
| | | | | | | | | | | | | | | AMQMinaProtocolSession.java - updated comment AbstractJMSMessage.java - removed a lot of getHeaders() == null checks. Updated logic accordingly.. Now a request for a property that doesn't exist will be consistent with calls on an empty table rather than just creating a default value. BasicContentHeaderProperties.java - the culprit for QPID-148 changed new FieldTable() to setHeaders(new FieldTable()) to ensure propertyFlag is set to write headers to the wire. Added PropertyValueTest.java - that tests all the valid values on the Message. *NOTE*: A number of the tests are commented out as AMQP and therefore the FieldTable do not support these values. QPID-9 Added SVN ignores for the target directories. Updated AbstractJMSMessage.java _readableProperties to be set correctly in the constructor. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@482238 13f79535-47bb-0310-9956-ffa450edef68
* FieldTable.java no longer has a keys() method as it already has a keySet(). ↵Martin Ritchie2006-11-301-6/+16
| | | | | | Plus the implementation was broken. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@480973 13f79535-47bb-0310-9956-ffa450edef68
* QPID-122Martin Ritchie2006-11-284-27/+164
| | | | | | | | | | Pulled _readable (_readableMessage) boolean up to AbstractJMSMessage.java and created (_readableProperties). Checks are now carried out to ensure that the message is readable/writable for the operation so that the correct exception can be thrown. As per the spec. clearBody() method had been implemented in AbstractJMSMessage.java to reset the _readableMessage as a result implementations must now implement clearBodyImpl() which is called before the _readableMessage is reset. Test updated to check that properties and body are correctly read/write set. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@480119 13f79535-47bb-0310-9956-ffa450edef68
* Redundant files removedMarnie McCormack2006-11-283-297/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@480090 13f79535-47bb-0310-9956-ffa450edef68
* Further example tidy upMarnie McCormack2006-11-284-48/+91
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@480089 13f79535-47bb-0310-9956-ffa450edef68
* Further example tidy upMarnie McCormack2006-11-284-39/+44
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@480088 13f79535-47bb-0310-9956-ffa450edef68