@@ -19,21 +19,21 @@ SSL port. HA tests expect a second node listening on localhost:5673.
19
19
Connection recovery tests need ` rabbitmqctl ` to control the running nodes.
20
20
can control the running node.
21
21
22
- ` mvn verify` will start those nodes with the appropriate configuration.
22
+ ` ./mvnw verify` will start those nodes with the appropriate configuration.
23
23
24
- To easily fullfil all those requirements, you can use ` make deps ` to
25
- fetch the dependencies. You can also fetch them yourself and use the
26
- same layout:
24
+ To easily fullfil all those requirements, you should use ` make deps ` to
25
+ fetch the dependencies in the ` deps ` directory.
27
26
27
+ You then run Maven with the ` deps.dir ` property set like this:
28
28
```
29
- deps
30
- |-- rabbitmq_codegen
31
- `-- rabbit
29
+ ./mvnw -Ddeps.dir=$(pwd)/deps verify
32
30
```
33
31
34
- You then run Maven with the ` deps.dir ` property set like this:
32
+ The previous command launches tests against the blocking IO connector. If you want
33
+ to run the tests against the NIO connector, add ` -P use-nio ` to the command line:
34
+
35
35
```
36
- mvn -Ddeps.dir=/path/to/ deps verify
36
+ ./mvnw -Ddeps.dir=$(pwd)/ deps verify -P use-nio
37
37
```
38
38
39
39
For details on running specific tests, see below.
@@ -47,47 +47,45 @@ top-level directory of the source tree:
47
47
* To run the client unit tests:
48
48
49
49
```
50
- mvn -Ddeps.dir=/path/to /deps verify -Dit.test=ClientTests
50
+ ./mvnw -Ddeps.dir=$(pwd) /deps verify -Dit.test=ClientTests
51
51
```
52
52
53
53
* To run the functional tests:
54
54
55
55
```
56
- mvn -Ddeps.dir=/path/to /deps verify -Dit.test=FunctionalTests
56
+ ./mvnw -Ddeps.dir=$(pwd) /deps verify -Dit.test=FunctionalTests
57
57
```
58
58
59
59
* To run a single test:
60
60
61
- ```
62
- mvn -Ddeps.dir=/path/to /deps verify -Dit.test=DeadLetterExchange
61
+ ```
62
+ ./mvnw -Ddeps.dir=$(pwd)/deps /deps verify -Dit.test=DeadLetterExchange
63
63
```
64
64
65
65
For example, to run the client tests:
66
66
67
67
```
68
- rabbitmq-java-client$ mvn -Ddeps.dir=/path/to /deps verify -Dit.test=ClientTests
68
+ rabbitmq-java-client$ ./mvnw -Ddeps.dir=$(pwd) /deps verify -Dit.test=ClientTests
69
69
[INFO] Scanning for projects...
70
- [INFO] Inspecting build with total of 1 modules...
71
- [INFO] Installing Nexus Staging features:
72
- [INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
73
70
[INFO]
74
71
[INFO] ------------------------------------------------------------------------
75
- [INFO] Building RabbitMQ Java Client 3.7 .0-SNAPSHOT
72
+ [INFO] Building RabbitMQ Java Client 5.3 .0-SNAPSHOT
76
73
[INFO] ------------------------------------------------------------------------
77
74
[INFO]
78
75
[INFO] --- groovy-maven-plugin:2.0:execute (generate-amqp-sources) @ amqp-client ---
79
76
[INFO]
80
77
[INFO] --- build-helper-maven-plugin:1.12:add-source (add-generated-sources-dir) @ amqp-client ---
81
- [INFO] Source directory: .../rabbitmq_java_client /target/generated-sources/src/main/java added.
78
+ [INFO] Source directory: .../rabbitmq-java-client /target/generated-sources/src/main/java added.
82
79
[INFO]
83
- [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ amqp-client ---
84
- [debug] execute contextualize
80
+ [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ amqp-client ---
85
81
[INFO] Using 'UTF-8' encoding to copy filtered resources.
86
- [INFO] Copying 1 resource
82
+ [INFO] Copying 2 resources
87
83
[INFO]
88
- [INFO] --- maven-compiler-plugin:3.5 .1:compile (default-compile) @ amqp-client ---
84
+ [INFO] --- maven-compiler-plugin:3.6 .1:compile (default-compile) @ amqp-client ---
89
85
[INFO] Nothing to compile - all classes are up to date
90
86
[INFO]
87
+ [INFO] --- maven-bundle-plugin:3.2.0:manifest (bundle-manifest) @ amqp-client ---
88
+ [INFO]
91
89
[INFO] --- groovy-maven-plugin:2.0:execute (remove-old-test-keystores) @ amqp-client ---
92
90
[INFO]
93
91
[INFO] --- groovy-maven-plugin:2.0:execute (query-test-tls-certs-dir) @ amqp-client ---
@@ -100,19 +98,31 @@ rabbitmq-java-client$ mvn -Ddeps.dir=/path/to/deps verify -Dit.test=ClientTests
100
98
[INFO]
101
99
[INFO] --- keytool-maven-plugin:1.5:deleteAlias (generate-test-empty-keystore) @ amqp-client ---
102
100
[INFO]
103
- [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ amqp-client ---
104
- [debug] execute contextualize
101
+ [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ amqp-client ---
105
102
[INFO] Using 'UTF-8' encoding to copy filtered resources.
106
- [INFO] Copying 3 resources
103
+ [INFO] Copying 5 resources
107
104
[INFO]
108
- [INFO] --- maven-compiler-plugin:3.5 .1:testCompile (default-testCompile) @ amqp-client ---
105
+ [INFO] --- maven-compiler-plugin:3.6 .1:testCompile (default-testCompile) @ amqp-client ---
109
106
[INFO] Nothing to compile - all classes are up to date
110
107
[INFO]
111
108
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ amqp-client ---
112
109
[INFO] Tests are skipped.
113
110
[INFO]
114
111
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ amqp-client ---
115
- [INFO] Building jar: .../rabbitmq_java_client/target/amqp-client-3.7.0-SNAPSHOT.jar
112
+ [INFO] Building jar: .../rabbitmq-java-client/target/amqp-client-5.3.0-SNAPSHOT.jar
113
+ [INFO]
114
+ [INFO] >>> maven-source-plugin:3.0.1:jar (default) > generate-sources @ amqp-client >>>
115
+ [INFO]
116
+ [INFO] --- groovy-maven-plugin:2.0:execute (generate-amqp-sources) @ amqp-client ---
117
+ [INFO]
118
+ [INFO] --- build-helper-maven-plugin:1.12:add-source (add-generated-sources-dir) @ amqp-client ---
119
+ [INFO] Source directory: .../rabbitmq-java-client/target/generated-sources/src/main/java added.
120
+ [INFO]
121
+ [INFO] <<< maven-source-plugin:3.0.1:jar (default) < generate-sources @ amqp-client <<<
122
+ [INFO]
123
+ [INFO]
124
+ [INFO] --- maven-source-plugin:3.0.1:jar (default) @ amqp-client ---
125
+ [INFO] Building jar: .../rabbitmq-java-client/target/amqp-client-5.3.0-SNAPSHOT-sources.jar
116
126
[INFO]
117
127
[INFO] --- groovy-maven-plugin:2.0:execute (start-test-broker-A) @ amqp-client ---
118
128
[INFO]
@@ -123,14 +133,14 @@ rabbitmq-java-client$ mvn -Ddeps.dir=/path/to/deps verify -Dit.test=ClientTests
123
133
[INFO] --- maven-failsafe-plugin:2.19.1:integration-test (integration-test) @ amqp-client ---
124
134
125
135
-------------------------------------------------------
126
- T E S T S
136
+ T E S T S
127
137
-------------------------------------------------------
128
138
Running com.rabbitmq.client.test.ClientTests
129
- Tests run: 50 , Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.732 sec - in com.rabbitmq.client.test.ClientTests
139
+ Tests run: 121 , Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 58.869 sec - in com.rabbitmq.client.test.ClientTests
130
140
131
141
Results :
132
142
133
- Tests run: 50 , Failures: 0, Errors: 0, Skipped: 0
143
+ Tests run: 121 , Failures: 0, Errors: 0, Skipped: 0
134
144
135
145
[INFO]
136
146
[INFO] --- groovy-maven-plugin:2.0:execute (stop-test-broker-B) @ amqp-client ---
@@ -141,9 +151,9 @@ Tests run: 50, Failures: 0, Errors: 0, Skipped: 0
141
151
[INFO] ------------------------------------------------------------------------
142
152
[INFO] BUILD SUCCESS
143
153
[INFO] ------------------------------------------------------------------------
144
- [INFO] Total time: 33.707s
145
- [INFO] Finished at: Mon Aug 08 16:22:26 CEST 2016
146
- [INFO] Final Memory: 21M/256M
154
+ [INFO] Total time: 01:31 min
155
+ [INFO] Finished at: 2018-04-25T11:33:54+02:00
156
+ [INFO] Final Memory: 26M/336M
147
157
[INFO] ------------------------------------------------------------------------
148
158
```
149
159
@@ -163,3 +173,6 @@ profile:
163
173
```
164
174
mvn verify -P '!setup-test-cluster'
165
175
```
176
+
177
+ Note that by doing so some tests will fail as they require ` rabbitmqctl ` to
178
+ control the running nodes.
0 commit comments