From 107f8bb5fd1fd7a0828ae888e04517ac3b2e516e Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 9 Mar 2018 18:17:36 +0100 Subject: [PATCH] Polishing --- .../web/reactive/server/samples/JsonContentTests.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/JsonContentTests.java b/spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/JsonContentTests.java index 21ccd291856..9f97cb0bc8b 100644 --- a/spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/JsonContentTests.java +++ b/spring-test/src/test/java/org/springframework/test/web/reactive/server/samples/JsonContentTests.java @@ -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"); * 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; /** - * Samples of tests with serialized JSON content. + * Samples of tests using {@link WebTestClient} with serialized JSON content. * * @author Rossen Stoyanchev + * @author Sam Brannen * @since 5.0 */ public class JsonContentTests { @@ -96,8 +97,8 @@ public class JsonContentTests { } @GetMapping("/persons/{name}") - Mono getPerson(@PathVariable String name) { - return Mono.just(new Person(name)); + Person getPerson(@PathVariable String name) { + return new Person(name); } @PostMapping