commit
4c95039b59
|
|
@ -4900,9 +4900,9 @@ database you can use the `@AutoConfigureTestDatabase` annotation:
|
||||||
|
|
||||||
[[boot-features-testing-spring-boot-applications-testing-autoconfigured-rest-docs]]
|
[[boot-features-testing-spring-boot-applications-testing-autoconfigured-rest-docs]]
|
||||||
==== Auto-configured Spring REST Docs tests
|
==== Auto-configured Spring REST Docs tests
|
||||||
Test `@AutoConfigureRestDocs` annotation can be used if you want to use Spring REST Docs
|
`@AutoConfigureRestDocs` annotation can be used if you want to use Spring REST Docs
|
||||||
in your tests. It will automatically configure `MockMvc` to use Spring REST Docs and
|
in your tests. It will automatically configure `MockMvc` to use Spring REST Docs and
|
||||||
removes the need for Spring REST Docs' JUnit rule.
|
remove the need for Spring REST Docs' JUnit rule.
|
||||||
|
|
||||||
[source,java,indent=0]
|
[source,java,indent=0]
|
||||||
----
|
----
|
||||||
|
|
@ -4964,7 +4964,7 @@ automatically generate the default snippets:
|
||||||
[source,java,indent=0]
|
[source,java,indent=0]
|
||||||
----
|
----
|
||||||
@TestConfiguration
|
@TestConfiguration
|
||||||
static class ResultHandlerConfiguration{
|
static class ResultHandlerConfiguration {
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public RestDocumentationResultHandler restDocumentation() {
|
public RestDocumentationResultHandler restDocumentation() {
|
||||||
|
|
|
||||||
|
|
@ -33,10 +33,10 @@ import org.springframework.context.annotation.Configuration;
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class RedisStarterDepricationWarningAutoConfiguration {
|
public class RedisStarterDeprecationWarningAutoConfiguration {
|
||||||
|
|
||||||
private static final Log logger = LogFactory
|
private static final Log logger = LogFactory
|
||||||
.getLog(RedisStarterDepricationWarningAutoConfiguration.class);
|
.getLog(RedisStarterDeprecationWarningAutoConfiguration.class);
|
||||||
|
|
||||||
@PostConstruct
|
@PostConstruct
|
||||||
public void logWarning() {
|
public void logWarning() {
|
||||||
|
|
@ -45,8 +45,7 @@ class ContentContainingCondition extends Condition<File> {
|
||||||
Reader reader = null;
|
Reader reader = null;
|
||||||
try {
|
try {
|
||||||
reader = new FileReader(value);
|
reader = new FileReader(value);
|
||||||
String content = FileCopyUtils.copyToString(new FileReader(value));
|
String content = FileCopyUtils.copyToString(reader);
|
||||||
System.out.println(content);
|
|
||||||
return content.contains(this.toContain);
|
return content.contains(this.toContain);
|
||||||
}
|
}
|
||||||
catch (IOException ex) {
|
catch (IOException ex) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue