[ BAEL-2515 ]: Move override tutorial classes to spring-testing module (#7232)

This commit is contained in:
Lukasz Rys 2019-07-02 13:08:35 +02:00 committed by maibin
parent c79bc22668
commit 2f7638fd37
15 changed files with 8 additions and 11 deletions

View File

@ -6,4 +6,3 @@ The "REST With Spring" Classes: http://bit.ly/restwithspring
- [Testing with Spring and Spock](https://www.baeldung.com/spring-spock-testing)
- [Exclude Auto-Configuration Classes in Spring Boot Tests](https://www.baeldung.com/spring-boot-exclude-auto-configuration-test)
- [Setting the Log Level in Spring Boot when Testing](https://www.baeldung.com/spring-boot-testing-log-level)
- [Override properties in Spring]

View File

@ -1,5 +1,2 @@
# test properties
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
# override properties
example.firstProperty=profile
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration

View File

@ -1,7 +1,3 @@
# security
spring.security.user.name=john
spring.security.user.password=123
# override properties
example.firstProperty=file
example.secondProperty=file
spring.security.user.password=123

View File

@ -4,3 +4,4 @@
- [A Quick Guide to @TestPropertySource](https://www.baeldung.com/spring-test-property-source)
- [Guide to ReflectionTestUtils for Unit Testing](https://www.baeldung.com/spring-reflection-test-utils)
- [How to Test the @Scheduled Annotation](https://www.baeldung.com/spring-testing-scheduled-annotation)
- [Override properties in Spring]()

View File

@ -26,7 +26,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>LATEST</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>

View File

@ -0,0 +1,2 @@
# override properties
example.firstProperty=profile

View File

@ -0,0 +1,3 @@
# override properties
example.firstProperty=file
example.secondProperty=file