Skip to content

Commit d9828a0

Browse files
izeyesnicoll
authored andcommitted
Polish
See gh-11143
1 parent ac22225 commit d9828a0

File tree

9 files changed

+16
-17
lines changed

9 files changed

+16
-17
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/couchbase/CouchbaseReactiveRepositoriesAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void noRepositoryAvailable() throws Exception {
8080

8181
@Test
8282
public void doesNotTriggerDefaultRepositoryDetectionIfCustomized() {
83-
load(CouchbaseReactiveRepositoriesAutoConfigurationTests.CustomizedConfiguration.class);
83+
load(CustomizedConfiguration.class);
8484
assertThat(this.context.getBeansOfType(ReactiveCityCouchbaseRepository.class))
8585
.isEmpty();
8686
}

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4568,12 +4568,12 @@ This sample configuration reuses the `Cluster` that was created via auto-configu
45684568
If Redis is available and configured, a `RedisCacheManager` is auto-configured. It is
45694569
possible to create additional caches on startup by setting the
45704570
`spring.cache.cache-names` property and cache defaults can be configured using
4571-
`spring.redis.cache.*` properties. For instance, the following configuration creates
4571+
`spring.cache.redis.*` properties. For instance, the following configuration creates
45724572
`cache1` and `cache2` caches with a _time to live_ of 10 minutes:
45734573

45744574
[source,properties,indent=0]
45754575
----
4576-
spring.cache.cache-names=cache1,cache2
4576+
spring.cache.cache-names=cache1,cache2
45774577
spring.cache.redis.time-to-live=600000
45784578
----
45794579

@@ -4603,7 +4603,7 @@ maximum size of 500 and a _time to live_ of 10 minutes
46034603

46044604
[source,properties,indent=0]
46054605
----
4606-
spring.cache.cache-names=cache1,cache2
4606+
spring.cache.cache-names=cache1,cache2
46074607
spring.cache.caffeine.spec=maximumSize=500,expireAfterAccess=600s
46084608
----
46094609

@@ -4625,7 +4625,7 @@ as follows:
46254625

46264626
[source,properties,indent=0]
46274627
----
4628-
spring.cache.cache-names=cache1,cache2
4628+
spring.cache.cache-names=cache1,cache2
46294629
----
46304630

46314631
If you do so and your application uses a cache not listed, then it fails at runtime when
@@ -6017,7 +6017,7 @@ A list of the auto-configuration that is enabled by `@JsonTest` can be
60176017
==== Auto-configured Spring MVC Tests
60186018
To test Spring MVC controllers are working as expected, you can use the `@WebMvcTest`
60196019
annotation. `@WebMvcTest` auto-configures the Spring MVC infrastructure and limits
6020-
scanned beans to `@Controller`, `@ControllerAdvice`, `@JsonComponent`, `@Converter`,
6020+
scanned beans to `@Controller`, `@ControllerAdvice`, `@JsonComponent`, `Converter`, `GenericConverter`,
60216021
`Filter`, `WebMvcConfigurer`, and `HandlerMethodArgumentResolver`. Regular `@Component`
60226022
beans are not scanned when using this annotation.
60236023

@@ -6124,7 +6124,7 @@ A list of the auto-configuration settings that are enabled by `@WebMvcTest` can
61246124
To test that Spring WebFlux controllers are working as expected, you can use the
61256125
`@WebFluxTest` annotation. `@WebFluxTest` auto-configures the Spring WebFlux
61266126
infrastructure and limits scanned beans to `@Controller`, `@ControllerAdvice`,
6127-
`@JsonComponent`, `Converter`, and `WebFluxConfigurer`. Regular `@Component` beans are
6127+
`@JsonComponent`, `Converter`, `GenericConverter`, and `WebFluxConfigurer`. Regular `@Component` beans are
61286128
not scanned when the `@WebFluxTest` annotation is used.
61296129

61306130
TIP: If you need to register extra components such as Jackson `Module`, you can import

spring-boot-project/spring-boot-starters/spring-boot-starter-data-couchbase-reactive/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55
<parent>
6-
<artifactId>spring-boot-starters</artifactId>
76
<groupId>org.springframework.boot</groupId>
7+
<artifactId>spring-boot-starters</artifactId>
88
<version>${revision}</version>
99
</parent>
1010
<artifactId>spring-boot-starter-data-couchbase-reactive</artifactId>

spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/reactive/WebFluxTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* <p>
4444
* Using this annotation will disable full auto-configuration and instead apply only
4545
* configuration relevant to WebFlux tests (i.e. {@code @Controller},
46-
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}, and
46+
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}/{@code GenericConverter}, and
4747
* {@code WebFluxConfigurer} beans but not {@code @Component}, {@code @Service} or
4848
* {@code @Repository} beans).
4949
* <p>

spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/WebMvcTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* <p>
4444
* Using this annotation will disable full auto-configuration and instead apply only
4545
* configuration relevant to MVC tests (i.e. {@code @Controller},
46-
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}, {@code Filter},
46+
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}/{@code GenericConverter}, {@code Filter},
4747
* {@code WebMvcConfigurer} and {@code HandlerMethodArgumentResolver} beans but not
4848
* {@code @Component}, {@code @Service} or {@code @Repository} beans).
4949
* <p>

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/ExampleController2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public Mono<String> two() {
3838
}
3939

4040
@GetMapping("/two/{id}")
41-
public Mono<String> one(@PathVariable ExampleId id) {
41+
public Mono<String> two(@PathVariable ExampleId id) {
4242
return Mono.just(id.getId() + "two");
4343
}
4444

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/ExampleIdConverter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@
2222

2323
import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
2424
import org.springframework.core.convert.TypeDescriptor;
25-
import org.springframework.core.convert.converter.Converter;
2625
import org.springframework.core.convert.converter.GenericConverter;
2726
import org.springframework.lang.Nullable;
2827
import org.springframework.stereotype.Component;
2928

3029
/**
31-
* Example {@link Converter} used with {@link WebFluxTest} tests.
30+
* Example {@link GenericConverter} used with {@link WebFluxTest} tests.
3231
*
3332
* @author Stephane Nicoll
3433
*/

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/mockmvc/ExampleController2.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ public class ExampleController2 {
3232

3333
@GetMapping("/two")
3434
@ResponseBody
35-
public String one(ExampleArgument argument) {
35+
public String two(ExampleArgument argument) {
3636
return argument + "two";
3737
}
3838

3939
@GetMapping("/two/{id}")
4040
@ResponseBody
41-
public String one(@PathVariable ExampleId id) {
41+
public String two(@PathVariable ExampleId id) {
4242
return id.getId() + "two";
4343
}
4444

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/mockmvc/ExampleId.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
import java.util.UUID;
2020

21-
import org.springframework.core.convert.converter.Converter;
21+
import org.springframework.core.convert.converter.GenericConverter;
2222

2323
/**
24-
* An example attribute that requires a {@link Converter}.
24+
* An example attribute that requires a {@link GenericConverter}.
2525
*
2626
* @author Stephane Nicoll
2727
*/

0 commit comments

Comments
 (0)