|
1 | 1 | /* |
2 | | - * Copyright 2012-2019 the original author or authors. |
| 2 | + * Copyright 2012-2020 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
23 | 23 | import java.lang.annotation.RetentionPolicy; |
24 | 24 | import java.lang.annotation.Target; |
25 | 25 |
|
| 26 | +import io.restassured.RestAssured; |
| 27 | + |
26 | 28 | import org.springframework.boot.autoconfigure.ImportAutoConfiguration; |
27 | 29 | import org.springframework.boot.test.autoconfigure.properties.PropertyMapping; |
28 | 30 | import org.springframework.context.annotation.Import; |
29 | 31 | import org.springframework.core.annotation.AliasFor; |
| 32 | +import org.springframework.test.web.reactive.server.WebTestClient; |
| 33 | +import org.springframework.test.web.servlet.MockMvc; |
30 | 34 |
|
31 | 35 | /** |
32 | 36 | * Annotation that can be applied to a test class to enable and configure |
33 | | - * auto-configuration of Spring REST Docs. Allows configuration of the output directory |
34 | | - * and the host, scheme, and port of generated URIs. When further configuration is |
35 | | - * required a {@link RestDocsMockMvcConfigurationCustomizer} bean can be used. |
| 37 | + * auto-configuration of Spring REST Docs. The auto-configuration sets up |
| 38 | + * {@link MockMvc}-based testing of a servlet web application, {@link WebTestClient}-based |
| 39 | + * testing of a reactive web application, or {@link RestAssured}-based testing of any web |
| 40 | + * application over HTTP. |
| 41 | + * <p> |
| 42 | + * Allows configuration of the output directory and the host, scheme, and port of |
| 43 | + * generated URIs. When further configuration is required a |
| 44 | + * {@link RestDocsMockMvcConfigurationCustomizer} bean can be used. |
36 | 45 | * |
37 | 46 | * @author Andy Wilkinson |
38 | 47 | * @since 1.4.0 |
|
0 commit comments