File tree 2 files changed +10
-2
lines changed
spring-boot-docs/src/main/asciidoc
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 949
949
</exclusion >
950
950
</exclusions >
951
951
</dependency >
952
+ <dependency >
953
+ <groupId >org.spockframework</groupId >
954
+ <artifactId >spock-spring</artifactId >
955
+ <version >${spock.version} </version >
956
+ </dependency >
952
957
<dependency >
953
958
<groupId >org.springframework</groupId >
954
959
<artifactId >spring-framework-bom</artifactId >
Original file line number Diff line number Diff line change @@ -2005,8 +2005,11 @@ the actual port that was allocated for the duration of the tests.
2005
2005
[[boot-features-testing-spring-boot-applications-with-spock]]
2006
2006
==== Using Spock to test Spring Boot applications
2007
2007
2008
- If you wish to use Spock to test a Spring Boot application then you cannot use the
2009
- `@SpringApplicationConfiguration` annotation that was
2008
+ If you wish to use Spock to test a Spring Boot application you should add a dependency
2009
+ on Spock's `spock-spring` module to your application's build. `spock-spring` integrates
2010
+ Spring's test framework into Spock.
2011
+
2012
+ Please note that you cannot use the `@SpringApplicationConfiguration` annotation that was
2010
2013
<<boot-features-testing-spring-boot-applications,described above>> as Spock
2011
2014
https://code.google.com/p/spock/issues/detail?id=349[does not find the
2012
2015
`@ContextConfiguration` meta-annotation]. To work around this limitation, you should use
You can’t perform that action at this time.
0 commit comments