summaryrefslogtreecommitdiff
path: root/java/broker/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Merged out from trunkQPID-2519Stephen D. Huston2011-10-2146-1134/+4535
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/QPID-2519@1187375 13f79535-47bb-0310-9956-ffa450edef68
* Undo bad merge from trunk - merged at wrong level.Stephen D. Huston2011-10-2146-4535/+1134
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/QPID-2519@1187150 13f79535-47bb-0310-9956-ffa450edef68
* Merge trunk to QPID-2519 branchStephen D. Huston2011-10-2046-1134/+4535
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/QPID-2519@1186990 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3048: InternalBrokerBasecase not removing all log actorsAndrew Donald Kennedy2011-02-171-4/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1071465 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2900: Changed SimpleAMQQueue to avoid race condition in the updating ↵Robert Gemmell2011-02-085-25/+394
| | | | | | | | atomic QueueContext._releasedEntry. Race was between thread SubFlushRunner (or QueueRunner) executing method SimpleAMQQueue.setLastSeenEntry and the thread executing the MessageRelase command executing method SimpleAMQQueue.updateSubRequeueEntry. Bolstered the unit tests surrounding the area of change to reduce risk of regression. Overrode TestableMemoryMessageStore#close() to avoid a NPE during tearDown silently cluttering some unit test logs (including SimpleAMQQueueTest). Applied patch from Keith Wall <keith.wall@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1068315 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3017: improve error handling for the new transaction classes, add some ↵Robert Gemmell2011-01-286-1/+1307
| | | | | | | | | logging, add unit tests Applied patches from Keith Wall git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1064629 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3010: ensure the SimpleByteBufferAllocator is always used and ↵Robert Gemmell2011-01-211-28/+0
| | | | | | non-direct ByteBuffers are the default, remove the old and now unused configuration methods from ServerConfiguration and update the example config.xml accordingly git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1061865 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2857: address a further 60 or so issues identified by running FindBugs ↵Robert Gemmell2010-09-192-31/+31
| | | | | | across the Java codebase git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@998700 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2704: simplify the implementation of SQEL scavenge() ability and add test.Robert Gemmell2010-09-181-0/+144
| | | | | | | Incorporates changes for QPID-2597 from 0.5.x-dev branch revisions 943240, 943534, 943576, and 943845. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@998543 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2857 : Address issues found by running FindBugs against the Java codebaseRobert Godfrey2010-09-1226-271/+329
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@996393 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2843: move the text to the properties file to allow for il8nRobert Gemmell2010-09-061-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@992988 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2843: Ensure that a MNG-1004 message is logged when using the platform ↵Robert Gemmell2010-09-031-1/+10
| | | | | | agent (and indicates use of the platform agent), merge the BRK-1004 message text with the previously used stdout startup log message. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@992330 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2843: add missed changeRobert Gemmell2010-09-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@992228 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2824: Use toLogString rather than toString on LogSubject(s)Robert Gemmell2010-08-304-4/+11
| | | | | | | Applied patch from Sorin Suciu <ssuciu@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@990820 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2802: remove forgotten debugging printlnRobert Gemmell2010-08-301-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@990758 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2771: rename package from plugin to pluginsRobert Gemmell2010-08-275-8/+8
| | | | | | | Applied patches from Sorin Suciu <ssuciu@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@990236 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2802: move Log4jMessageLogger and update its test to account for use of ↵Robert Gemmell2010-08-261-51/+83
| | | | | | per-message log heirarchies rather than a single default Logger git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@989735 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2802: Add support for a status-logging hierarchy, such that the ↵Robert Gemmell2010-08-2615-294/+114
| | | | | | Log4jMessageLogger may use this to allow individual on/off toggling of each status message. Combine the RootLogger and RawLogger interfaces. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@989734 13f79535-47bb-0310-9956-ffa450edef68
* Tidy up various badly named testsAndrew Donald Kennedy2010-08-132-59/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@985259 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2787: Add test for persistence of Conflation/LastValue queuesRobert Gemmell2010-08-091-24/+52
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@983571 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2787: split existing test into component test methods regarding ↵Robert Gemmell2010-08-061-172/+405
| | | | | | persistence/recovery of queues, exchanges, messages,bindings. Add additional tests around removal of persisted items. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@982988 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2787: Move QpidTestCase to Common test module so that any test can ↵Robert Gemmell2010-08-061-2/+2
| | | | | | | | | inherit from it, allowing exclusions to be applied. Add ability to gather the class name of the message store associated with the test profile in use. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@982986 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2659: Add AMQStoreException to message storesAndrew Donald Kennedy2010-07-264-22/+24
| | | | | | | This is a sub-class of AMQInternalException, which encapsulates error code 541, or INTERNAL_ERROR. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@979315 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2682: Move slow consumer disconnection mechanism to the brokerAndrew Donald Kennedy2010-07-225-0/+1016
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@966637 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2731: ensure the MessageStoreTest test store for Derby is created ↵Robert Gemmell2010-07-211-1/+2
| | | | | | within the QPID_WORK directory git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@966153 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2731, QPID-2741, QPID-2742: Enable the MessageStoreTest to run for the ↵Robert Gemmell2010-07-161-43/+67
| | | | | | DerbyMessageStore. Test update of queue exclusivity. Apply various fixes to allowtest to pass (correct exchange count checks, flush messages to the store, delete store directory properly, check for the proper value for selector argument, add ability to unregister virtualhosts from the registry) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964830 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2731: enable getting/setting queue exclusivity via JMXRobert Gemmell2010-07-163-2/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@964825 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a compile error.Rajith Muditha Attapattu2010-07-061-26/+0
| | | | | | | The testTopicBindings() was defined twice in this class, possibly an error when applying the patch. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960766 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2700 Patch for ability to remove bindings from exchanges and additional ↵Marnie McCormack2010-07-051-0/+79
| | | | | | tests for direct and topic exchange add/remove logic from Andrew Kennedy git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960678 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2681 : Correcly process global configuration, added test to coverMartin Ritchie2010-07-051-3/+53
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960549 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2581 : Process new topic configurationMartin Ritchie2010-07-051-0/+79
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@960544 13f79535-47bb-0310-9956-ffa450edef68
* Update SAMQQT to use an initialised Direct exchange rather than make its own.Martin Ritchie2010-06-141-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954434 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2638 : Add initial support for Topics section in configuration file.Martin Ritchie2010-06-142-6/+5
| | | | | | | | | Added getQueueConfiguration(AMQQueue) which will return a new configuration for the given queue reflecting its binding status. This will allow the queue to be reconfigured during the binding process. Full Docs on this approach to appear on wiki. AMQQueue.configure and getConfiguration() have been updated to use ConfigurationPlugin rather than QueueConfiguration, The queue may be configured by a TopicConfiguration now. Update SlowConsumerTest to be GlobalQueuesTest and add a GlobalTopicsTest to match, where the config is added to the queues or topics section respectively git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954433 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2625 : Moved Logging generation to moudule.xml to allow plugins to ↵Martin Ritchie2010-06-1411-59/+58
| | | | | | | | | | | | | | | | | | utilise the same functionality. To enable generation for your plugin just add : <target name="precompile" depends="gen_logging"/> to your build.xml Logging is now defined in a X_logmessage.properties file. Where X is used to make the XMessages.java class. Also updated all existing usages to remove the 3 digit prefix that wasn't adding any info. Updated ConfigStore and Transaction Log to use named properties rather than numeric values. If we are going to continue with <3 alpha>-<4 numeric> ids for messages then we'll need to have some registry to prevent clases. Perhaps it is simpler to relax this and require a plugin creator to provide a unique identifier for their messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954432 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : External broker profile actually needs an InVM broker created to ↵Martin Ritchie2010-06-031-1/+1
| | | | | | | | | | process the configuration. As we don't automatically create the AppRegistry any more we need to explicitly create an InVM broker for these two tests. It may be necessary to move the IBBC creation from AbstractTestLogging to QBTC for external profile runs. However, testing to date has only shown these two tests failing due to missing AR. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@951170 13f79535-47bb-0310-9956-ffa450edef68
* Increase ExpiredMessageCheck time period to ensure test succesfully runsMartin Ritchie2010-06-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@951163 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : Fix test that need to modify the configuration before starting ↵Martin Ritchie2010-06-028-124/+133
| | | | | | the broker. VHCT needed to ensure that the configuration for the various queue priorities was set. The actors need to be able to en/disable status-updates as required. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950654 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : Update test to use the testName'd queue by default not 'test'Martin Ritchie2010-06-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950653 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : Move the creation of the default virtualhosts in the xml config ↵Martin Ritchie2010-06-021-15/+23
| | | | | | to setup so tests can clear it and make their own git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950652 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : extra plugins require common/test for the test NetworkDriverMartin Ritchie2010-06-021-6/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950651 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : Updated actor test for IBBC.Martin Ritchie2010-06-027-71/+39
| | | | | | | | | Base classes now extends IBBC rather than TestCase. The rest of the tests were updated to make use of the configure method rather than their own setUpWithConfig(). The test do not directly require an ApplicationRegistry and were using it to assist in the creation of the logger parmeters. CurrentActor test was also updated to stop the broker before testing to ensure that any Actors set for the broker test run are removed so that the CurrentActor.set/remove logic can be tested. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950649 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : Update to ensure multiple virtualhosts are actually added, ↵Martin Ritchie2010-06-021-5/+6
| | | | | | required move to XMLConfiguration from PropertyConfiguration git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950648 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : IBBC update and removed most local variable declartion as this ↵Martin Ritchie2010-06-021-37/+12
| | | | | | was duplicating IBBC setup git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950647 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : Updated as per other tests for IBBC, with setUp/tearDownMartin Ritchie2010-06-021-7/+11
| | | | | | | This test also required a change to record the number of queues created during IBBC broker startup and ensure the test added one more test. Previously it checked for 0 queues then 1 queue now it is n and n+1. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950646 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : Updated AMQQueueAlertTest to use configure() to set ↵Martin Ritchie2010-06-021-45/+23
| | | | | | | | ExpiredMessage check period. Removed local variables and renamed others to utilise those created by IBBC. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950645 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2623 : Simple changes to classes that extended TestCase, now they ↵Martin Ritchie2010-06-0221-155/+84
| | | | | | | | | extend InternalBrokerBaseCase. Fixed up @Override on setUp/tearDowns removed setUp/tearDowns that were simply super calls. Corrected existing setUp/tearDowns to call super. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950644 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : Update IBBC and TestApplicationRegistry to provide default test ↵Martin Ritchie2010-06-022-20/+64
| | | | | | | | vhosts and one named after the test via getName(). Also provide configure() method callback so the test can provide any configuration it needs before the broker starts up. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950643 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 : Remove NullApplicationRegistryMartin Ritchie2010-06-022-132/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950642 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2632 - Cleaned up PluginTest, it now simply uses the configure() method ↵Martin Ritchie2010-06-021-18/+5
| | | | | | to set its additional property git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950641 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2625 : Update GenerateLogMessages to probe the property file for ↵Martin Ritchie2010-06-021-0/+6
| | | | | | 3-Digit LoggingClasses and use that as the basis for generation. Expose LogSubjects from Queue and Session. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@950635 13f79535-47bb-0310-9956-ffa450edef68