Polish
See gh-11143
This commit is contained in:
committed by
Stephane Nicoll
parent
ac22225b1d
commit
d9828a0aaa
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user