File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
spring-boot-docs/src/main/asciidoc
spring-boot-integration-tests/src/test/java/org/springframework/boot/gradle Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2000,16 +2000,18 @@ in order to run your integration tests using random ports. For example:
2000
2000
See <<howto-discover-the-http-port-at-runtime>> for a description of how you can discover
2001
2001
the actual port that was allocated for the duration of the tests.
2002
2002
2003
+
2004
+
2003
2005
[[boot-features-testing-spring-boot-applications-with-spock]]
2004
2006
==== Using Spock to test Spring Boot applications
2005
2007
2006
2008
If you wish to use Spock to test a Spring Boot application then you cannot use the
2007
2009
`@SpringApplicationConfiguration` annotation that was
2008
2010
<<boot-features-testing-spring-boot-applications,described above>> as Spock
2009
2011
https://code.google.com/p/spock/issues/detail?id=349[does not find the
2010
- `@ContextConfiguration` meta-annotation]. To work around
2011
- this limitation, you should use the `@ContextConfiguration` annotation directly and
2012
- configure it to use the Spring Boot-specfic context loader:
2012
+ `@ContextConfiguration` meta-annotation]. To work around this limitation, you should use
2013
+ the `@ContextConfiguration` annotation directly and configure it to use the Spring
2014
+ Boot specific context loader:
2013
2015
2014
2016
[source,groovy,indent=0]
2015
2017
----
Original file line number Diff line number Diff line change 31
31
import static org .junit .Assert .assertThat ;
32
32
import static org .junit .Assert .assertTrue ;
33
33
34
+ /**
35
+ * Integration tests for gradle repackaging.
36
+ *
37
+ * @author Andy Wilkinson
38
+ */
34
39
public class RepackagingTests {
35
40
36
41
private static final String BOOT_VERSION = ManagedDependencies .get ()
You can’t perform that action at this time.
0 commit comments