Merge branch '2.0.x'

Closes gh-891
This commit is contained in:
Andy Wilkinson
2023-05-11 17:56:16 +01:00
152 changed files with 3110 additions and 2193 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2021 the original author or authors.
* Copyright 2014-2023 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.
@@ -31,9 +31,10 @@ public class FormParameters {
public void postFormDataSnippet() throws Exception {
// tag::form-parameters[]
this.mockMvc.perform(post("/users").param("username", "Tester")) // <1>
.andExpect(status().isCreated()).andDo(document("create-user", formParameters(// <2>
parameterWithName("username").description("The user's username") // <3>
)));
.andExpect(status().isCreated())
.andDo(document("create-user", formParameters(// <2>
parameterWithName("username").description("The user's username") // <3>
)));
// end::form-parameters[]
}