summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
* QPID-1136 : Provided a fix for the leak in UnacknowledgedMessage when ↵Martin Ritchie2008-06-1310-91/+485
| | | | | | | | acking. Added a new InternalBrokerBaseCase for performing testing on the broker without using the client libraries. This allows for testing closer to AMQP. Further investigation is required to identify why the .Net was causing the refcounting problems that required the previous change to Unacknowledged message introducing this . git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@667561 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1058 : Addition of a CRAM-MD5-HEX as discussed on the JIRA. An ↵Martin Ritchie2008-06-065-3/+454
| | | | | | additional test is provided to ensure that the handle method correctly wraps a given Database password in hex. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@664001 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1119 : M2x commit : Addition of a System property to ↵Martin Ritchie2008-06-046-2/+578
| | | | | | | | | | | | AMQProtocolHandler.java to allow the syncWait default to be changed. To perform this a new SlowMessageStore has been added to the systest package. This allows all MessageStore methods to have a pre and/or post delay applied. This delay can be configured dynamically if you have a handle to the Store or via the XML configuration. The SlowMessageStore can also be used to wrap any existing MessageStore (Testing only carried out with the default MemoryMessageStore) To make testing easier on M2x VMTestCase has been modified to allow the test to simply configure logging levels and systemProperties. These are then reverted after the test has completed. These changes will naturally need more work to before they are merged to trunk which uses totally different methods for ClientProperties and for running tests. systests/pom.xml didn't have amqj.logging.level as a systemProperty hence setting it did nothing for the tests. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@663125 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1117 : Added tests for all other message types. Refactored the common ↵Martin Ritchie2008-06-031-4/+153
| | | | | | parts out of the objectTest. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@662818 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1092 : Changed toString to be String.valueOf(getObject())Martin Ritchie2008-06-032-23/+102
| | | | | | | Added MessageToStringTest, tests performing toString on Message before calling getObject(). git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@662770 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1101 : Update to DestNameExchange to perform deep copy.Martin Ritchie2008-05-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@661746 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1103 :Changed VMTestCase to allow the creation of InVM brokers based on ↵Martin Ritchie2008-05-303-13/+91
| | | | | | a configuration file. Updated ApplicationRegistry as it was not correctly utilising the set configuration and always using AR 1. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@661739 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1084 : Fix AMQSession race condition on no-ack flow controlRobert Godfrey2008-05-211-8/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@658614 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 657859 via svnmerge from Martin Ritchie2008-05-202-22/+42
| | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid ........ r657859 | ritchiem | 2008-05-19 17:54:06 +0100 (Mon, 19 May 2008) | 1 line QPID-1066 : Removed isInfo wrapping. Added test that is missing from trunk from M2.x QueueDepthSelectorTest. ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@658166 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 657097 via svnmerge from Aidan Skinner2008-05-162-23/+22
| | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid ........ r657097 | rgodfrey | 2008-05-16 16:08:55 +0100 (Fri, 16 May 2008) | 1 line QPID-1060 : Release ref to transient meta data; cache message size ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@657111 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1019 prevent messages being dequeued unecessarily, from rgodfreyAidan Skinner2008-05-053-7/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@653416 13f79535-47bb-0310-9956-ffa450edef68
* QPID-888,QPID-886 : Fixed all management uses of _lock.lock / _lock.unlock ↵Martin Ritchie2008-04-301-74/+103
| | | | | | so that they correctly call unlock from a finally block in the CSDM. There are two issues that cover that. QPID-888 - Fix the management ones and QPID-886 to fix the use in removeExpired. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@652399 13f79535-47bb-0310-9956-ffa450edef68
* QPID-887 : Renamed QueueHouseKeeping threads so they can be identified in ↵Martin Ritchie2008-04-301-31/+43
| | | | | | thread dump. Named Queue-housekeeping-<virtualhost name> git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@652389 13f79535-47bb-0310-9956-ffa450edef68
* QPID-889 : Removed _reapingStoreContext from CSDM replaced with local ↵Martin Ritchie2008-04-301-9/+22
| | | | | | StoreContext()s so they are not reused by different threads. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@652388 13f79535-47bb-0310-9956-ffa450edef68
* QPID-156 : Add an Apache licensed store - created an experimental Derby ↵Robert Godfrey2008-04-163-0/+1455
| | | | | | based store git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.x@648834 13f79535-47bb-0310-9956-ffa450edef68
* QPID-886 : In order to allow the test to be written that highlights the ↵Martin Ritchie2008-04-161-1/+6
| | | | | | failure we need to be able to provide a Config object not a file. So made the method public that reads the file and added constructor to use the Config object. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@648740 13f79535-47bb-0310-9956-ffa450edef68
* QPID-933 : performance tweaksRobert Godfrey2008-04-1612-82/+145
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@648672 13f79535-47bb-0310-9956-ffa450edef68
* QPID-932 : Remove references to unusued constructor argument "browsedAcks" ↵Robert Godfrey2008-04-161-4/+4
| | | | | | of NonTransactionalContext git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@648670 13f79535-47bb-0310-9956-ffa450edef68
* QPID-932 : Remove references to unusued constructor argument "browsedAcks" ↵Robert Godfrey2008-04-168-27/+16
| | | | | | of NonTransactionalContext git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@648669 13f79535-47bb-0310-9956-ffa450edef68
* QPID-931 : Always use exclusive consumers when subscribing to topicsRobert Godfrey2008-04-162-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@648666 13f79535-47bb-0310-9956-ffa450edef68
* QPID-929 : Exchange.Declare being sent prior to every message when ↵Robert Godfrey2008-04-163-11/+28
| | | | | | publishing to explicit destination git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@648658 13f79535-47bb-0310-9956-ffa450edef68
* QPID-927 : Multiple acknowledgements should be coalesced into single ↵Robert Godfrey2008-04-161-2/+61
| | | | | | multiple ack git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@648652 13f79535-47bb-0310-9956-ffa450edef68
* QPID-926 : Perform all store operations associated with an acknowledge in a ↵Robert Godfrey2008-04-161-34/+39
| | | | | | single store transaction git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@648648 13f79535-47bb-0310-9956-ffa450edef68
* QPID-925 : Only begin store transactions when there is a persistent message ↵Robert Godfrey2008-04-162-7/+33
| | | | | | to be committed git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@648645 13f79535-47bb-0310-9956-ffa450edef68
* QPID-922 : Selectors on header properties should not convert AMQShortStrings ↵Robert Godfrey2008-04-164-9/+58
| | | | | | to Strings on every evaluation git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@648637 13f79535-47bb-0310-9956-ffa450edef68
* QPID-900 : Re-use byte[] of buffer for backing of AMQShortStringRobert Godfrey2008-04-161-5/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@648617 13f79535-47bb-0310-9956-ffa450edef68
* QPID-899 : Bug in AMQShortString on tokenized substringsRobert Godfrey2008-04-162-4/+55
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@648614 13f79535-47bb-0310-9956-ffa450edef68
* Add licenscesAidan Skinner2008-03-3128-6/+551
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@643153 13f79535-47bb-0310-9956-ffa450edef68
* QPID-890 : Removed old references to VHostPrincipalDatabase and an errant ↵Martin Ritchie2008-03-311-18/+3
| | | | | | | | old.PrincipalDatabaseAccessManager change. This file should now work. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@643032 13f79535-47bb-0310-9956-ffa450edef68
* QPID-875 : Dropped logging level to debug.Martin Ritchie2008-03-241-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@640434 13f79535-47bb-0310-9956-ffa450edef68
* QPID-874 use getQueueDepth properlyAidan Skinner2008-03-241-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@640426 13f79535-47bb-0310-9956-ffa450edef68
* QPID-872 : Adjusted TimeToLive test receive calls to use a wait of 1s(1000) ↵Martin Ritchie2008-03-241-3/+3
| | | | | | as 100ms was unreasonably short. This was causing test failures on a slower machine where no failure had really occurred. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@640422 13f79535-47bb-0310-9956-ffa450edef68
* QPID-873 : Authentication Exception should be hard error; also NPE in ↵Robert Godfrey2008-03-242-3/+7
| | | | | | PropertiesPrincipalDatabase when user not known git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@640417 13f79535-47bb-0310-9956-ffa450edef68
* QPID-868 : The acl.config.xml was using Base64MD5 PF which cannot be used ↵Martin Ritchie2008-03-211-2/+2
| | | | | | inVM as the SASL manager complains about the registration of the client and broker moudules. They appear to overwrite each other. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@639684 13f79535-47bb-0310-9956-ffa450edef68
* QPID-868 : Removed the acl.config.xml from systests/etc and updated the ↵Martin Ritchie2008-03-213-231/+2
| | | | | | systests pom file to locate the one in broker/etc. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@639629 13f79535-47bb-0310-9956-ffa450edef68
* QPID-867 Always close connectionsAidan Skinner2008-03-211-12/+66
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@639619 13f79535-47bb-0310-9956-ffa450edef68
* QPID-866 : Based on Patch from ASkinner. Only the FailoverException makes ↵Martin Ritchie2008-03-212-8/+40
| | | | | | sence to process this way so remove list and synchronized so we either do an add or throw the set FailoverException. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@639598 13f79535-47bb-0310-9956-ffa450edef68
* QPID-854 : Renamed logger class to be correct, Reverting change from 637176Martin Ritchie2008-03-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@639269 13f79535-47bb-0310-9956-ffa450edef68
* QPID-854 Resynchronise the _acceptor so that we don't hangAidan Skinner2008-03-202-8/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@639251 13f79535-47bb-0310-9956-ffa450edef68
* QPID-847 : Fixed this test for the selectorsMartin Ritchie2008-03-191-5/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@638951 13f79535-47bb-0310-9956-ffa450edef68
* QPID-862 : Add IOException to valid reason to start failover and removed the ↵Martin Ritchie2008-03-191-2/+2
| | | | | | propogation of the error to client, as they don't need to know of the error unless failover fails. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@638950 13f79535-47bb-0310-9956-ffa450edef68
* QPID 854 Add a connect delay to FailOverBaseCase so we don't end up in a ↵Aidan Skinner2008-03-191-1/+1
| | | | | | race condition where mina closes the broker. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@638926 13f79535-47bb-0310-9956-ffa450edef68
* QPID-841 : SimpleACLTest didn't close a client connectionMartin Ritchie2008-03-191-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@638816 13f79535-47bb-0310-9956-ffa450edef68
* QPID-854 : Removed cleanQueue requirement for now as a lot of tests are not ↵Martin Ritchie2008-03-191-1/+2
| | | | | | cleaning up correctly. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@638805 13f79535-47bb-0310-9956-ffa450edef68
* QPID-854Aidan Skinner2008-03-192-6/+21
| | | | | | | | AcknowledgeTest clean up messages that are left on the queue VMTestCase remove bogus DummyTestCase which causes problems with a lot of tests now that we check for queue cleanliness git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@638799 13f79535-47bb-0310-9956-ffa450edef68
* QPID-854 : Tests were failing as the new connection hadn't been started. ↵Martin Ritchie2008-03-192-21/+45
| | | | | | Also replaced purgeQueue with checkQueuesClean as the tests should ensure they have tidied up.. if they haven't then something has gone wrong. So purging will just hide that issue. Used a second connection in the QBAAT to validate the messages to be sure they are still there. This also fixes the issues with Transacted and ClientAck where the messages would of course go back on the queue as no ack or commit were performed. Using a new connection is also cleaner as it ensures the queue browsing has no side effects for other users of the system. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@638760 13f79535-47bb-0310-9956-ffa450edef68
* QPID-854 : Renabled the test as the cause was the lack of closing of the ↵Martin Ritchie2008-03-182-11/+13
| | | | | | purgeQueue connection in VMTestCase git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@638412 13f79535-47bb-0310-9956-ffa450edef68
* QPID-847 : Prevented the InvalidArgumentException from closing the connection.Martin Ritchie2008-03-185-1/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@638346 13f79535-47bb-0310-9956-ffa450edef68
* QPID-854 : Disabled one of the failover QueueBrowser tests as I believe it ↵Martin Ritchie2008-03-181-11/+15
| | | | | | to be a problem with mina and inVM broker. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@638322 13f79535-47bb-0310-9956-ffa450edef68
* QPID-841,QPID-854 : Reinstated SimpleACLTest and removed QueueBrowserTest ↵Martin Ritchie2008-03-171-2/+1
| | | | | | from the junit-toolkit run for now as the class has been renamed git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@637992 13f79535-47bb-0310-9956-ffa450edef68