Merge branch '5.3.x'
This commit is contained in:
@@ -79,7 +79,6 @@ public class MockClientHttpRequest extends AbstractClientHttpRequest {
|
||||
* <p>The default write handler consumes and caches the request body so it
|
||||
* may be accessed subsequently, e.g. in test assertions. Use this property
|
||||
* when the request body is an infinite stream.
|
||||
*
|
||||
* @param writeHandler the write handler to use returning {@code Mono<Void>}
|
||||
* when the body has been "written" (i.e. consumed).
|
||||
*/
|
||||
|
||||
@@ -32,7 +32,6 @@ public interface PropertyProvider {
|
||||
|
||||
/**
|
||||
* Get the value of the named property.
|
||||
*
|
||||
* @param name the name of the property to retrieve
|
||||
* @return the value of the property or {@code null} if not found
|
||||
*/
|
||||
|
||||
@@ -44,10 +44,8 @@ public abstract class TestConstructorUtils {
|
||||
/**
|
||||
* Determine if the supplied executable for the given test class is an
|
||||
* autowirable constructor.
|
||||
*
|
||||
* <p>This method delegates to {@link #isAutowirableConstructor(Executable, Class, PropertyProvider)}
|
||||
* will a value of {@code null} for the fallback {@link PropertyProvider}.
|
||||
*
|
||||
* @param executable an executable for the test class
|
||||
* @param testClass the test class
|
||||
* @return {@code true} if the executable is an autowirable constructor
|
||||
@@ -60,10 +58,8 @@ public abstract class TestConstructorUtils {
|
||||
/**
|
||||
* Determine if the supplied constructor for the given test class is
|
||||
* autowirable.
|
||||
*
|
||||
* <p>This method delegates to {@link #isAutowirableConstructor(Constructor, Class, PropertyProvider)}
|
||||
* will a value of {@code null} for the fallback {@link PropertyProvider}.
|
||||
*
|
||||
* @param constructor a constructor for the test class
|
||||
* @param testClass the test class
|
||||
* @return {@code true} if the constructor is autowirable
|
||||
@@ -76,10 +72,8 @@ public abstract class TestConstructorUtils {
|
||||
/**
|
||||
* Determine if the supplied executable for the given test class is an
|
||||
* autowirable constructor.
|
||||
*
|
||||
* <p>This method delegates to {@link #isAutowirableConstructor(Constructor, Class, PropertyProvider)}
|
||||
* if the supplied executable is a constructor and otherwise returns {@code false}.
|
||||
*
|
||||
* @param executable an executable for the test class
|
||||
* @param testClass the test class
|
||||
* @param fallbackPropertyProvider fallback property provider used to look up
|
||||
@@ -114,7 +108,6 @@ public abstract class TestConstructorUtils {
|
||||
* {@link PropertyProvider} (see
|
||||
* {@link TestConstructor#TEST_CONSTRUCTOR_AUTOWIRE_MODE_PROPERTY_NAME}).</li>
|
||||
* </ol>
|
||||
*
|
||||
* @param constructor a constructor for the test class
|
||||
* @param testClass the test class
|
||||
* @param fallbackPropertyProvider fallback property provider used to look up
|
||||
|
||||
@@ -203,7 +203,6 @@ public abstract class AbstractTestNGSpringContextTests implements IHookable, App
|
||||
* Delegates to the configured {@link TestContextManager} to
|
||||
* {@linkplain TestContextManager#afterTestMethod(Object, Method, Throwable)
|
||||
* post-process} the test method after the actual test has executed.
|
||||
*
|
||||
* @param testMethod the test method which has just been executed on the
|
||||
* test instance
|
||||
* @throws Exception allows all exceptions to propagate
|
||||
|
||||
@@ -52,7 +52,6 @@ public abstract class TestContextResourceUtils {
|
||||
|
||||
/**
|
||||
* Convert the supplied paths to classpath resource paths.
|
||||
*
|
||||
* <p>Delegates to {@link #convertToClasspathResourcePaths(Class, boolean, String...)}
|
||||
* with {@code false} supplied for the {@code preservePlaceholders} flag.
|
||||
* @param clazz the class with which the paths are associated
|
||||
|
||||
@@ -42,7 +42,6 @@ public interface RequestExpectationManager {
|
||||
* used to add more expectations and define a response.
|
||||
* <p>This is a delegate for
|
||||
* {@link MockRestServiceServer#expect(ExpectedCount, RequestMatcher)}.
|
||||
*
|
||||
* @param requestMatcher a request expectation
|
||||
* @return for setting up further expectations and define a response
|
||||
* @see MockRestServiceServer#expect(RequestMatcher)
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.test.web.reactive.server;
|
||||
|
||||
import org.springframework.http.client.reactive.ClientHttpResponse;
|
||||
|
||||
@@ -862,7 +862,6 @@ public interface WebTestClient {
|
||||
/**
|
||||
* Exit the chained flow in order to consume the response body
|
||||
* externally, e.g. via {@link reactor.test.StepVerifier}.
|
||||
*
|
||||
* <p>Note that when {@code Void.class} is passed in, the response body
|
||||
* is consumed and released. If no content is expected, then consider
|
||||
* using {@code .expectBody().isEmpty()} instead which asserts that
|
||||
|
||||
@@ -47,7 +47,6 @@ public interface ResultActions {
|
||||
* .andExpect(content().contentType(MediaType.APPLICATION_JSON))
|
||||
* .andExpect(jsonPath("$.person.name").value("Jason"));
|
||||
* </pre>
|
||||
*
|
||||
* @see #andExpectAll(ResultMatcher...)
|
||||
*/
|
||||
ResultActions andExpect(ResultMatcher matcher) throws Exception;
|
||||
@@ -78,7 +77,6 @@ public interface ResultActions {
|
||||
* jsonPath("$.person.name").value("Jason")
|
||||
* );
|
||||
* </pre>
|
||||
*
|
||||
* @since 5.3.10
|
||||
* @see #andExpect(ResultMatcher)
|
||||
*/
|
||||
@@ -105,7 +103,6 @@ public interface ResultActions {
|
||||
|
||||
/**
|
||||
* Return the result of the executed request for direct access to the results.
|
||||
*
|
||||
* @return the result of the request
|
||||
*/
|
||||
MvcResult andReturn();
|
||||
|
||||
@@ -49,7 +49,6 @@ public interface ResultHandler {
|
||||
|
||||
/**
|
||||
* Perform an action on the given result.
|
||||
*
|
||||
* @param result the result of the executed request
|
||||
* @throws Exception if a failure occurs
|
||||
*/
|
||||
|
||||
@@ -31,7 +31,6 @@ public interface SmartRequestBuilder extends RequestBuilder {
|
||||
/**
|
||||
* Apply request post processing. Typically that means invoking one or more
|
||||
* {@link org.springframework.test.web.servlet.request.RequestPostProcessor org.springframework.test.web.servlet.request.RequestPostProcessors}.
|
||||
*
|
||||
* @param request the request to initialize
|
||||
* @return the request to use, either the one passed in or a wrapped one
|
||||
*/
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.test.web.servlet.client;
|
||||
|
||||
import jakarta.servlet.Filter;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.test.web.servlet.client;
|
||||
|
||||
import org.springframework.test.web.servlet.setup.ConfigurableMockMvcBuilder;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.test.web.servlet.client;
|
||||
|
||||
import java.io.StringWriter;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.test.web.servlet.client;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
@@ -112,7 +113,6 @@ public interface MockMvcWebTestClient {
|
||||
/**
|
||||
* This method can be used to apply further assertions on a given
|
||||
* {@link ExchangeResult} based the state of the server response.
|
||||
*
|
||||
* <p>Normally {@link WebTestClient} is used to assert the client response
|
||||
* including HTTP status, headers, and body. That is all that is available
|
||||
* when making a live request over HTTP. However when the server is
|
||||
@@ -134,7 +134,6 @@ public interface MockMvcWebTestClient {
|
||||
* .andExpect(flash().attributeCount(1))
|
||||
* .andExpect(flash().attribute("message", "success!"));
|
||||
* </pre>
|
||||
*
|
||||
* <p>Note: this method works only if the {@link WebTestClient} used to
|
||||
* perform the request was initialized through one of bind method in this
|
||||
* class, and therefore requests are handled by {@link MockMvc}.
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.test.web.servlet.client;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
Reference in New Issue
Block a user