Skip to content

Commit 34e423f

Browse files
artembilangaryrussell
authored andcommitted
GH-1085: spring-rabbit-junit -> spring-rabbit-test
Fixes: #1085 Fixes: #1084 * Make a `spring-rabbit-junit` as compile dependency for the `spring-rabbit-test` for better end-user experience * Also move `What's New` chapter to the top level as it is with other projects * Add a note about `spring-rabbit-junit` into `What's New`
1 parent 2f632eb commit 34e423f

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,13 +383,11 @@ project('spring-rabbit-test') {
383383
dependencies {
384384

385385
compile project(':spring-rabbit')
386+
compile project(':spring-rabbit-junit')
386387
compile "org.hamcrest:hamcrest-library:$hamcrestVersion"
387388
compile "org.hamcrest:hamcrest-core:$hamcrestVersion"
388-
compile ("org.mockito:mockito-core:$mockitoVersion") {
389-
exclude group: 'org.hamcrest', module: 'hamcrest-core'
390-
}
389+
compile "org.mockito:mockito-core:$mockitoVersion"
391390
testCompile project(':spring-rabbit').sourceSets.test.output
392-
testCompile project(':spring-rabbit-junit')
393391
}
394392

395393
}

src/reference/asciidoc/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ Copies of this document may be made for your own use and for distribution to oth
2323

2424
include::preface.adoc[]
2525

26+
include::whats-new.adoc[]
27+
2628
== Introduction
2729

2830
This first part of the reference documentation is a high-level overview of Spring AMQP and the underlying concepts.
2931
It includes some code snippets to get you up and running as quickly as possible.
3032

3133
include::quick-tour.adoc[]
3234

33-
include::whats-new.adoc[]
34-
3535
== Reference
3636

3737
This part of the reference documentation details the various components that comprise Spring AMQP.

src/reference/asciidoc/whats-new.adoc

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[[whats-new]]
2-
=== What's New
2+
== What's New
33

4-
==== Changes in 2.2 Since 2.1
4+
=== Changes in 2.2 Since 2.1
55

66
This section describes the changes between version 2.1 and version 2.2.
77

8-
===== Package Changes
8+
==== Package Changes
99

1010
The following classes/interfaces have been moved from `org.springframework.amqp.rabbit.core.support` to `org.springframework.amqp.rabbit.batch`:
1111

@@ -15,25 +15,27 @@ The following classes/interfaces have been moved from `org.springframework.amqp.
1515

1616
In addition, `ListenerExecutionFailedException` has been moved from `org.springframework.amqp.rabbit.listener.exception` to `org.springframework.amqp.rabbit.support`.
1717

18-
===== Dependency Changes
18+
==== Dependency Changes
1919

2020
JUnit (4) is now an optional dependency and will no longer appear as a transitive dependency.
2121

22-
===== "Breaking" API Changes
22+
The `spring-rabbit-junit` module is now a *compile* dependency in the `spring-rabbit-test` module for a better target application development experience when with only a single `spring-rabbit-test` we get the full stack of testing utilities for AMQP components.
23+
24+
==== "Breaking" API Changes
2325

2426
the JUnit (5) `RabbitAvailableCondition.getBrokerRunning()` now returns a `BrokerRunningSupport` instance instead of a `BrokerRunning`, which depends on JUnit 4.
2527
It has the same API so it's just a matter of changing the class name of any references.
2628
See <<junit5-conditions>> for more information.
2729

28-
===== ListenerContainer Changes
30+
==== ListenerContainer Changes
2931

3032
Messages with fatal exceptions are now rejected and NOT requeued, by default, even if the acknowledge mode is manual.
3133
See <<exception-handling>> for more information.
3234

3335
Listener performance can now be monitored using Micrometer `Timer` s.
3436
See <<micrometer>> for more information.
3537

36-
===== @RabbitListener Changes
38+
==== @RabbitListener Changes
3739

3840
You can now configure an `executor` on each listener, overriding the factory configuration, to more easily identify threads associated with the listener.
3941
You can now override the container factory's `acknowledgeMode` property with the annotation's `ackMode` property.
@@ -57,7 +59,7 @@ See <<Jackson2JsonMessageConverter-from-message>> for more information.
5759
Similarly. the `Jackson2XmlMessageConverter` now assumes the content is XML if there is no `contentType` property, or it is the default (`application/octet-string`).
5860
See <<jackson2xml>> for more information.
5961

60-
===== AMQP Logging Appenders Changes
62+
==== AMQP Logging Appenders Changes
6163

6264
The Log4J and Logback `AmqpAppender` s now support a `verifyHostname` SSL option.
6365

@@ -68,20 +70,20 @@ The appenders now support the `SaslConfig` property.
6870

6971
See <<logging>> for more information.
7072

71-
===== MessageListenerAdapter Changes
73+
==== MessageListenerAdapter Changes
7274

7375
The `MessageListenerAdapter` provides now a new `buildListenerArguments(Object, Channel, Message)` method to build an array of arguments to be passed into target listener and an old one is deprecated.
7476
See <<message-listener-adapter>> for more information.
7577

76-
===== Exchange/Queue Declaration Changes
78+
==== Exchange/Queue Declaration Changes
7779

7880
The `ExchangeBuilder` and `QueueBuilder` fluent APIs used to create `Exchange` and `Queue` objects for declaration by `RabbitAdmin` now support "well known" arguments.
7981
See <<builder-api>> for more information.
8082

8183
The `RabbitAdmin` has a new property `explicitDeclarationsOnly`.
8284
See <<conditional-declaration>> for more information.
8385

84-
===== Connection Factory Changes
86+
==== Connection Factory Changes
8587

8688
The `CachingConnectionFactory` has a new property `shuffleAddresses`.
8789
When providing a list of broker node addresses, the list will be shuffled before creating a connection so that the order in which the connections are attempted is random.
@@ -93,11 +95,11 @@ See <<template-confirms>> for more information.
9395

9496
Also, the publisher confirm type is now specified with the `ConfirmType` enum instead of the two mutually exclusive setter methods.
9597

96-
===== New MessagePostProcessor Classes
98+
==== New MessagePostProcessor Classes
9799

98100
Classes `DeflaterPostProcessor` and `InflaterPostProcessor` were added to support compression and decompression, respectively, when the message content-encoding is set to `deflate`.
99101

100-
===== Other Changes
102+
==== Other Changes
101103

102104
The `Declarables` object (for declaring multiple queues, exchanges, bindings) now has a filtered getter for each type.
103105
See <<collection-declaration>> for more information.

0 commit comments

Comments
 (0)