1- There are multiple test suites in the RabbitMQ Java client library; the source
2- for all of the suites can be found in the test/src directory.
1+ Overview
2+ ========
3+
4+ There are multiple test suites in the RabbitMQ Java client library;
5+ the source for all of the suites can be found in the test/src
6+ directory.
37
48The suites are:
59
610 Client tests
7- Funtional tests
8-
9- To run any of these test suites you need to first satisfy the following
10- preconditions:
11+ Functional tests
12+ Server tests
13+ Performance tests
14+ SSL tests
1115
12- 1. Ensure that you are running a RabbitMQ server locally on the standard
13- port.
14- 2. Ensure that you have successfully built the javas client using ANT.
16+ All the tests require a RabbitMQ server listening on localhost:5672
17+ (the default settings).
1518
16- All the test suites can be run with the command ant test-suite. To run
19+ All the test suites can be run with the command ant test-suite. To run
1720specific test suites see the instructions below.
1821
1922
20- RUNNING CLIENT TESTS
23+ Running a Specific Test Suite
24+ =============================
25+
26+ To run a specific test suite, but not the others, you should execute
27+ one of the following in the top-level directory of the source tree:
28+
29+ ant test-client
30+ ant test-functional
31+ ant test-server
32+ ant test-ssl
2133
22- To run these tests, from the command line in the project directory execute
23- the command ant test-client. For example:
34+ Note that to run the SSL tests, the RabbitMQ server should be
35+ configured to use SSL as per the SSL with RabbitMQ guide.
36+
37+ For example, to run the client tests:
2438
2539----------------- Example shell session -------------------------------------
2640rabbitmq-java-client$ ant test-client
@@ -47,37 +61,3 @@ BUILD SUCCESSFUL
4761
4862If any tests are broken details can be found by viewing this file:
4963 build/TEST-com.rabbitmq.client.test.ClientTests.txt
50-
51-
52- RUNNING FUNCTIONAL TESTS
53-
54- To run these tests, from the command line in the project directory execute
55- the command ant test-functional.
56-
57- ----------------- Example shell session -------------------------------------
58- rabbitmq-java-client$ ant test-functional
59- Buildfile: build.xml
60-
61- test-prepare:
62-
63- test-build:
64-
65- amqp-generate-check:
66-
67- amqp-generate:
68-
69- build:
70-
71- test-build-param:
72-
73- test-functional:
74- [junit] Running com.rabbitmq.client.test.functional.FunctionalTests
75- [junit] Tests run: 69, Failures: 0, Errors: 0, Time elapsed: 10.621 sec
76-
77- BUILD SUCCESSFUL
78- Total time: 11 seconds
79- -----------------------------------------------------------------------------
80-
81- If any tests are broken details can be found by viewing this file:
82- build/TEST-com.rabbitmq.client.test.functional.FunctionalTests.txt
83-
0 commit comments