See gh-11143
This commit is contained in:
Johnny Lim
2017-11-27 04:43:02 +09:00
committed by Stephane Nicoll
parent ac22225b1d
commit d9828a0aaa
9 changed files with 16 additions and 17 deletions

View File

@@ -43,7 +43,7 @@ import org.springframework.test.web.reactive.server.WebTestClient;
* <p>
* Using this annotation will disable full auto-configuration and instead apply only
* configuration relevant to WebFlux tests (i.e. {@code @Controller},
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}, and
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}/{@code GenericConverter}, and
* {@code WebFluxConfigurer} beans but not {@code @Component}, {@code @Service} or
* {@code @Repository} beans).
* <p>

View File

@@ -43,7 +43,7 @@ import org.springframework.test.web.servlet.MockMvc;
* <p>
* Using this annotation will disable full auto-configuration and instead apply only
* configuration relevant to MVC tests (i.e. {@code @Controller},
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}, {@code Filter},
* {@code @ControllerAdvice}, {@code @JsonComponent}, {@code Converter}/{@code GenericConverter}, {@code Filter},
* {@code WebMvcConfigurer} and {@code HandlerMethodArgumentResolver} beans but not
* {@code @Component}, {@code @Service} or {@code @Repository} beans).
* <p>

View File

@@ -38,7 +38,7 @@ public class ExampleController2 {
}
@GetMapping("/two/{id}")
public Mono<String> one(@PathVariable ExampleId id) {
public Mono<String> two(@PathVariable ExampleId id) {
return Mono.just(id.getId() + "two");
}

View File

@@ -22,13 +22,12 @@ import java.util.UUID;
import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
import org.springframework.core.convert.TypeDescriptor;
import org.springframework.core.convert.converter.Converter;
import org.springframework.core.convert.converter.GenericConverter;
import org.springframework.lang.Nullable;
import org.springframework.stereotype.Component;
/**
* Example {@link Converter} used with {@link WebFluxTest} tests.
* Example {@link GenericConverter} used with {@link WebFluxTest} tests.
*
* @author Stephane Nicoll
*/

View File

@@ -32,13 +32,13 @@ public class ExampleController2 {
@GetMapping("/two")
@ResponseBody
public String one(ExampleArgument argument) {
public String two(ExampleArgument argument) {
return argument + "two";
}
@GetMapping("/two/{id}")
@ResponseBody
public String one(@PathVariable ExampleId id) {
public String two(@PathVariable ExampleId id) {
return id.getId() + "two";
}

View File

@@ -18,10 +18,10 @@ package org.springframework.boot.test.autoconfigure.web.servlet.mockmvc;
import java.util.UUID;
import org.springframework.core.convert.converter.Converter;
import org.springframework.core.convert.converter.GenericConverter;
/**
* An example attribute that requires a {@link Converter}.
* An example attribute that requires a {@link GenericConverter}.
*
* @author Stephane Nicoll
*/