Polishing

This commit is contained in:
Juergen Hoeller
2018-07-25 14:16:02 +02:00
parent 3899b7a909
commit 3881a4aded
39 changed files with 133 additions and 147 deletions

View File

@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.mock.web.server;
import reactor.core.publisher.Mono;
@@ -38,7 +39,6 @@ import org.springframework.web.server.session.WebSessionManager;
*/
public final class MockServerWebExchange extends DefaultServerWebExchange {
private MockServerWebExchange(MockServerHttpRequest request, WebSessionManager sessionManager) {
super(request, new MockServerHttpResponse(), sessionManager,
ServerCodecConfigurer.create(), new AcceptHeaderLocaleContextResolver());
@@ -101,12 +101,10 @@ public final class MockServerWebExchange extends DefaultServerWebExchange {
@Nullable
private WebSessionManager sessionManager;
public Builder(MockServerHttpRequest request) {
this.request = request;
}
/**
* Set the session to use for the exchange.
* <p>This method is mutually exclusive with

View File

@@ -123,16 +123,14 @@ public final class MockMvc {
this.defaultResultHandlers = resultHandlers;
}
/**
* Return the underlying {@link DispatcherServlet} instance that this
* {@code MockMvc} was initialized with.
* <p>This is intended for use in custom request processing scenario where
* a request handling component happens to delegate to the
* {@code DispatcherServlet} at runtime and therefore needs to be injected
* with it.
* <p>For most processing scenarios, simply use {@link MockMvc#perform}, or
* if you need to configure the {@code DispatcherServlet}, provide a
* <p>This is intended for use in custom request processing scenario where a
* request handling component happens to delegate to the {@code DispatcherServlet}
* at runtime and therefore needs to be injected with it.
* <p>For most processing scenarios, simply use {@link MockMvc#perform},
* or if you need to configure the {@code DispatcherServlet}, provide a
* {@link DispatcherServletCustomizer} to the {@code MockMvcBuilder}.
* @since 5.1
*/

View File

@@ -49,7 +49,6 @@ package org.springframework.test.web.servlet;
@FunctionalInterface
public interface ResultMatcher {
/**
* Assert the result of an executed request.
* @param result the result of the executed request