Remove deprecated code
Closes gh-387
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2016 the original author or authors.
|
||||
* Copyright 2014-2017 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.
|
||||
@@ -41,23 +41,6 @@ public abstract class MockMvcRestDocumentation {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides access to a {@link MockMvcConfigurer} that can be used to configure a
|
||||
* {@link MockMvc} instance using the given {@code restDocumentation}.
|
||||
*
|
||||
* @param restDocumentation the REST documentation
|
||||
* @return the configurer
|
||||
* @see ConfigurableMockMvcBuilder#apply(MockMvcConfigurer)
|
||||
* @deprecated Since 1.1 in favor of
|
||||
* {@link #documentationConfiguration(RestDocumentationContextProvider)}
|
||||
*/
|
||||
@Deprecated
|
||||
public static MockMvcRestDocumentationConfigurer documentationConfiguration(
|
||||
org.springframework.restdocs.RestDocumentation restDocumentation) {
|
||||
return documentationConfiguration(
|
||||
(RestDocumentationContextProvider) restDocumentation);
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides access to a {@link MockMvcConfigurer} that can be used to configure a
|
||||
* {@link MockMvc} instance using the given {@code contextProvider}.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2016 the original author or authors.
|
||||
* Copyright 2014-2017 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.
|
||||
@@ -55,21 +55,6 @@ public class RestDocumentationResultHandler implements ResultHandler {
|
||||
this.delegate.handle(result.getRequest(), result.getResponse(), configuration);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the given {@code snippets} such that they are documented when this result
|
||||
* handler is called.
|
||||
*
|
||||
* @param snippets the snippets to add
|
||||
* @return this {@code RestDocumentationResultHandler}
|
||||
* @deprecated since 1.1 in favor of {@link #document(Snippet...)} and passing the
|
||||
* return value into {@link ResultActions#andDo(ResultHandler)}
|
||||
*/
|
||||
@Deprecated
|
||||
public RestDocumentationResultHandler snippets(Snippet... snippets) {
|
||||
this.delegate.addSnippets(snippets);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new {@link RestDocumentationResultHandler} to be passed into
|
||||
* {@link ResultActions#andDo(ResultHandler)} that will produce documentation using
|
||||
|
||||
Reference in New Issue
Block a user