From 5fb67af25f920b0ca9e15e191f3aaf1bed864965 Mon Sep 17 00:00:00 2001 From: ceilfors Date: Sun, 31 May 2015 09:16:49 +0100 Subject: [PATCH] Remove spock caveat that was fixed in 1.0 Closes gh-3072 --- .../src/main/asciidoc/spring-boot-features.adoc | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 4c6404ee1e..a58b5a6358 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -2954,23 +2954,6 @@ If you wish to use Spock to test a Spring Boot application you should add a depe on Spock's `spock-spring` module to your application's build. `spock-spring` integrates Spring's test framework into Spock. -Please note that you cannot use the `@SpringApplicationConfiguration` annotation that was -<> as Spock -https://code.google.com/p/spock/issues/detail?id=349[does not find the -`@ContextConfiguration` meta-annotation]. To work around this limitation, you should use -the `@ContextConfiguration` annotation directly and configure it to use the Spring -Boot specific context loader: - -[source,groovy,indent=0] ----- - @ContextConfiguration(loader = SpringApplicationContextLoader.class) - class ExampleSpec extends Specification { - - // ... - - } ----- - NOTE: The annotations <> can be used with Spock, i.e. you can annotate your `Specification` with `@WebIntegrationTest` to suit the needs of your tests.