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:
20002000See <<howto-discover-the-http-port-at-runtime>> for a description of how you can discover
20012001the actual port that was allocated for the duration of the tests.
20022002
2003+
2004+
20032005[[boot-features-testing-spring-boot-applications-with-spock]]
20042006==== Using Spock to test Spring Boot applications
20052007
20062008If you wish to use Spock to test a Spring Boot application then you cannot use the
20072009`@SpringApplicationConfiguration` annotation that was
20082010<<boot-features-testing-spring-boot-applications,described above>> as Spock
20092011https://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:
20132015
20142016[source,groovy,indent=0]
20152017----
Original file line number Diff line number Diff line change 3131import static org .junit .Assert .assertThat ;
3232import static org .junit .Assert .assertTrue ;
3333
34+ /**
35+ * Integration tests for gradle repackaging.
36+ *
37+ * @author Andy Wilkinson
38+ */
3439public class RepackagingTests {
3540
3641 private static final String BOOT_VERSION = ManagedDependencies .get ()
You can’t perform that action at this time.
0 commit comments