summaryrefslogtreecommitdiff
path: root/qpid/java/client/src/test
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4984: WIP - Merge from trunk r.1534385.Kim van der Riet2013-10-215-3/+215
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/linearstore@1534394 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4984: WIP - Merge from trunk r.1525056Kim van der Riet2013-09-205-15/+171
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/linearstore@1525101 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4943: Introduce a feature for 0-8/0-9/0-9-1 protocols to close a ↵Alex Rudyy2013-06-211-0/+77
| | | | | | connection on receiving a mandatory unroutable message in a transacted session git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1495511 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4904 : [Java] AMQShortString.equals should on return true if it is ↵Robert Godfrey2013-06-032-46/+46
| | | | | | being compared to another AMQShortString git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1488957 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4873 Commiting patch by Helen Kwong.Rajith Muditha Attapattu2013-05-231-0/+95
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1485878 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3838 If stric-jms flag is used qpid.subject is prefixed with "JMS_"Rajith Muditha Attapattu2013-05-091-3/+36
| | | | | | | to ensure we are in compliance with the JMS spec. Without this fix we fail the JEE TCK. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1480656 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3769 Modified the equals and hashcode methods in AMQTopic to fallRajith Muditha Attapattu2013-04-011-3/+19
| | | | | | | back to AMQDestination for address strings. For BURL the existing impl will continue to work. Added AMQAnyDestination to the tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1463158 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3769 Addressed concerns raised by Alex. Expanded the tests toRajith Muditha Attapattu2013-03-261-2/+6
| | | | | | verify subject equality when determining equality for destinations. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1461329 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3769 Modified the hashcode impl to match equals. Added a test caseRajith Muditha Attapattu2013-03-131-0/+46
| | | | | | to verify equals and hashcode for ADDR based destinations. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1456008 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3396 Changed the test cases to relect that username and passwordRajith Muditha Attapattu2013-03-061-4/+2
| | | | | | is optional. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1453559 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4312: reduce visibility and narrow argument type for new check methods, ↵Robert Gemmell2013-02-052-5/+72
| | | | | | add some unit testing of config and cleanup IDT systest a little git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1442602 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4312 : [Java Client] add option for verification of queue existence ↵Robert Godfrey2013-02-041-1/+0
| | | | | | during creation of a MessageProducer git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1442128 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4541 Added the ability to turn off replay at the time the sessionRajith Muditha Attapattu2013-01-251-1/+1
| | | | | | | | is created. The XASessionImpl will use this feature to turn off replay on the underlying JMS session. This prevents messages being replayed outside the boundaries of the XA transaction. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1438725 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4513: improve client handling of discovery that its SASL Provider has ↵Robert Gemmell2012-12-201-0/+140
| | | | | | | | | | already been registered when it attemts to do so, as occurs in cases with multiple classloaders. Verifies if the previously registered Provider matches the new Provider trying to be registerered; accepts it if it does, logs a warning if it doesnt (and logs the properties at debug to aid discovering why), and now only logs the error if we cant determine either way (rather than all the time as it did previously). Also corrects and clarifies some of the other existing logging to make it clearer. Work by Alex (orudyy) and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1424556 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4377: add missing licence headers to various files in the Java treeRobert Gemmell2012-12-111-0/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1420285 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4468: restore connection level ssl option to provide compatibility with ↵Robert Gemmell2012-11-252-1/+50
| | | | | | older client configuration, add ability to override brokerlist ssl option git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1413364 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3317 Modified the code to implement correct behavior for linkRajith Muditha Attapattu2012-10-121-0/+126
| | | | | | | | | bindings. Added unit tests for Address Helper and two specific test cases for verifying link behavior (bindings and customization of subscription queues). Review request : https://reviews.apache.org/r/7412/ git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1397651 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4352: Java client logs key_store_password/trust_store_password at debugKeith Wall2012-09-292-44/+52
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1391916 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3906 Fixed an error with the default. Added unit tests for testingRajith Muditha Attapattu2012-09-282-2/+29
| | | | | | StreamMessage encoding defaults. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1391567 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3906 Switched the default to legacy stream message format.Rajith Muditha Attapattu2012-09-281-0/+153
| | | | | | | Allows the lists to contain elements of different types. Added a set of unit tests in place of the system tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1391566 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4302: 0-8..0-9-1 client should sync after message.acknowledge()Keith Wall2012-09-131-8/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1384512 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4261: extend BindingURLs to allow specifying exchange ↵Robert Gemmell2012-09-014-7/+127
| | | | | | | | | durable/autodelete/internal options, use the values when sending exchange declares during producer and consumer creation. Fix ExchangeDeclareHandler to set auto-delete properly (though we dont actually support it, and it was removed from the protocol in 0-9-1). Isolate AMQProtocolHandler use to the 0-8/0-9/0-9-1 specific Session/Producer/Consumer implementations that actually need it instead of letting it bleed through the abstraction and 0-10 implementations that dont use it. Add some other clarifying comments. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1379748 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4051: use the connecttimeout option value from the BrokerDetails object ↵Robert Gemmell2012-08-121-0/+24
| | | | | | to control the connect() timeout via the produced ConnectionSettings object git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1372147 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add missing Apache licenses to Java source files; correct ↵Keith Wall2012-07-021-1/+1
| | | | | | positioning of the license wrt to the package statement git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1356257 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4023: restore connection URL setter, add check that URL details have ↵Robert Gemmell2012-05-281-2/+18
| | | | | | been set before calling connect(), add unit+sys test to verify operation git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343220 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3971: resolve CI failure (hopefully), make misc test improvementsRobert Gemmell2012-05-132-69/+58
| | | | | | | | | | | - Use File.createTempFile to target the tmp dir, hopefully resolving the CI failure, ensure it is deleted even if the test subsequently fails. - Use QpidTestCase system property handling, ensuring modified properties are unset/restored to prior values following the test. - Move the properties used in the test internally as opposed to loading from another file. - Verify the values returned from the loaded Context are as expected an not only non-null. - Remove unused imports, fields. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1337871 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3971:PropertiesFileInitialContextFactory cannot open file URIWeston M. Price2012-05-131-1/+0
| | | | | | | | *Fixed issue with unit test and temp file *Cleaned up PropertiesFileInitialContext getInitialContext() method git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1337830 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3994: add support for optionally retrieving FindBugs using IvyWeston M. Price2012-05-131-0/+27
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1337829 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3791: PropertiesFileInitialContextFactory cannot open file URLWeston M. Price2012-05-031-19/+0
| | | | | | | | | | *Removing new test for now as absolute file path is not working on test machine *Excludes mechanism did not work to remove a single test, or the entire class *Will rework git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1333645 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3971: PropertiesFileInitialContextFactory cannot open file URLWeston M. Price2012-05-033-19/+72
| | | | | | | | | | *Added capability to read java.naming.provider.url from file:// URI *Added PropertiesFileInitialContextFactoryTest *Moved functionaly from old JNDIPropertiesTest to new test class *Minor cleanup. Added @SuppressWarnings annotation to PropertiesFileInitialContext git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1333586 13f79535-47bb-0310-9956-ffa450edef68
* QPID-792 : [Java Client] Validate queue browser selector on client side, not ↵Robert Godfrey2012-02-271-1/+1
| | | | | | broker git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1294194 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2660 : AMQMessageDelegate_0_10 uses Byte.valueOf() when converting ↵Robert Godfrey2012-02-201-0/+45
| | | | | | String properties to short, int, and long values git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1291260 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3831: use AcquireMode=PRE_ACQUIRED when using server-side selectors and ↵Robert Gemmell2012-02-132-3/+2
| | | | | | consuming from Queues. Remove unused method parameter for selector filter. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1243384 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3440: add test to verify issue by ensuring that the reply-to ↵Robert Gemmell2012-02-131-0/+63
| | | | | | Destination cache results in use of the same Destination objects for subsequent messages. Implement equals() and hashCode() for the generated ReplyTo class to let it function properly as an index in the hashmap to resolve the issue. Update PropertyValueTest to remember the initial reply-to destination it sets and compare it with the value returned after sending/receiving the message, rather than constituting its own test destination for comparison. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1243380 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3801 : [Java] Move JMS Selector code into commonRobert Godfrey2012-02-022-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1239643 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3784: move the system property key into ClientPropertiesRobert Gemmell2012-02-021-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1239622 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3784: introduce system property to run a dispatcher thread as ↵Robert Gemmell2012-02-021-0/+66
| | | | | | | | damon/non-daemon thread. Changes dispatcher thread to be non daemon thread by default. Applied patch from Andrew MacBean <andymacbean@gmail.com> and Oleksandr Rudyy<orudyy@gmail.com>. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1239620 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3790: Add a method AMQSession.getQueueDepth(AMQDestionation, boolean) ↵Robert Gemmell2012-02-011-3/+24
| | | | | | | | to sync session (if specified) before sending QueueQuery command Applied patch from Andrew MacBean <andymacbean@gmail.com> and Oleksandr Rudyy<orudyy@gmail.com>. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1239166 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Encapsulate fields, use private members and accesors (keep ↵Robert Godfrey2012-01-275-14/+14
| | | | | | checkstyle happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236867 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA : [Java] Tidy up import statements across the codebase, remove ↵Robert Godfrey2012-01-2725-184/+111
| | | | | | unused/redundant imports (keep Checkstyle happy) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236638 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3720 : [Java Broker] Implement Message GroupingRobert Godfrey2012-01-031-7/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1226930 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3714 : [Java] Performance ImprovementsRobert Godfrey2011-12-282-14/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Persistence: Store message in same transaction as enqueue if possible Memory: Remove unnecessary (un)boxing Reduce unnecessary copying of message data Cache short strings Cache queues for a given routing key on an Exchange (0-9) Use a fixed size buffer for preparing frames to write out Other: Reduce calls to System.currentTimeMillis (0-10) Special case immutable RangeSets, in particular RangeSets of a single range/point (0-10) Special case delivery properties and message properties in headers (0-9) send commit-ok as soon as data committed to store Cache publishing access control queries (0-9) Optimised long and int typed values for FieldTables (0-9) Retain FieldTable encoded form (0-9) Cache queue and topic destinations git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1225178 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3662: Only display connection options once in toString of URLAndrew Donald Kennedy2011-12-061-0/+28
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1211061 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3642,QPID-3643: Add Dead Letter Queue functionality for 0-8/0-9/0-9-1 ↵Keith Wall2011-11-285-11/+282
| | | | | | | | paths, fixes isBound methods on FanoutExchange Applied patch from Keith Wall <keith.wall@gmail.com>, Andrew MacBean <andymacbean@gmail.com> and Oleksandr Rudyy<orudyy@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1207029 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2703: 0-10 Transaction rollback/recover does not restore consumer creditKeith Wall2011-11-171-23/+0
| | | | | | | Defect in Java client. 0-10 requires that commands are completed, but the Java client was failing to complete those commands corresponding to messages that were being rolled-back/recovered. Work by Robbie Gemmell and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1203139 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3610: set TCP_NODELAY to true by default, add new system property for ↵Robert Gemmell2011-11-111-10/+21
| | | | | | changing default, add unit tests for system properties + connection url options. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1200803 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3519: refactor consumer argument handlingKeith Wall2011-11-091-9/+8
| | | | | | Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1199664 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3518: Introduce client side ability to detect server side support.Keith Wall2011-11-092-3/+10
| | | | | | Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1199662 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2848: refactored message consumer: pre-aquire, capacity decisions are ↵Keith Wall2011-11-072-1/+110
| | | | | | | | moved into consumer, renamed field noConsume into browseOnly, cleaned up selector filter code. Applied patch from Andrew MacBean <andymacbean@gmail.com>, Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1198642 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3526, QPID-3524: make sure the 0-10 client message.acknowledge() ↵Robert Gemmell2011-10-061-1/+6
| | | | | | | | actually acknowledges messages immediately, and does so synchronously, adding test to verify behaviour. Split acknowledge() and commit() methods into version specific session implementations for clarity/reuse, align 0-10 and 0-8/9 transacted publishing behaviour, refactor preDeliver and postDeliver methods, remove dead code from consumers. Applied patch from Oleksandr Rudyy<orudyy@gmail.com> and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1179695 13f79535-47bb-0310-9956-ffa450edef68