Polishing
This commit is contained in:
parent
00fea23e6b
commit
107f8bb5fd
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2017 the original author or authors.
|
* Copyright 2002-2018 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -32,9 +32,10 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Samples of tests with serialized JSON content.
|
* Samples of tests using {@link WebTestClient} with serialized JSON content.
|
||||||
*
|
*
|
||||||
* @author Rossen Stoyanchev
|
* @author Rossen Stoyanchev
|
||||||
|
* @author Sam Brannen
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
public class JsonContentTests {
|
public class JsonContentTests {
|
||||||
|
|
@ -96,8 +97,8 @@ public class JsonContentTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/persons/{name}")
|
@GetMapping("/persons/{name}")
|
||||||
Mono<Person> getPerson(@PathVariable String name) {
|
Person getPerson(@PathVariable String name) {
|
||||||
return Mono.just(new Person(name));
|
return new Person(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue