Skip to content

Commit fd3e5ec

Browse files
author
Phillip Webb
committed
Polish
1 parent 4ede9cd commit fd3e5ec

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,16 +2000,18 @@ in order to run your integration tests using random ports. For example:
20002000
See <<howto-discover-the-http-port-at-runtime>> for a description of how you can discover
20012001
the 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

20062008
If 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
20092011
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:
20132015

20142016
[source,groovy,indent=0]
20152017
----

spring-boot-integration-tests/src/test/java/org/springframework/boot/gradle/RepackagingTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
import static org.junit.Assert.assertThat;
3232
import static org.junit.Assert.assertTrue;
3333

34+
/**
35+
* Integration tests for gradle repackaging.
36+
*
37+
* @author Andy Wilkinson
38+
*/
3439
public class RepackagingTests {
3540

3641
private static final String BOOT_VERSION = ManagedDependencies.get()

0 commit comments

Comments
 (0)