Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
fd3e5ece
Commit
fd3e5ece
authored
Jul 08, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
4ede9cd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+5
-3
RepackagingTests.java
...ava/org/springframework/boot/gradle/RepackagingTests.java
+5
-0
No files found.
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
fd3e5ece
...
@@ -2000,6 +2000,8 @@ in order to run your integration tests using random ports. For example:
...
@@ -2000,6 +2000,8 @@ in order to run your integration tests using random ports. For example:
See <<howto-discover-the-http-port-at-runtime>> for a description of how you can discover
See <<howto-discover-the-http-port-at-runtime>> for a description of how you can discover
the actual port that was allocated for the duration of the tests.
the actual port that was allocated for the duration of the tests.
[[boot-features-testing-spring-boot-applications-with-spock]]
[[boot-features-testing-spring-boot-applications-with-spock]]
==== Using Spock to test Spring Boot applications
==== Using Spock to test Spring Boot applications
...
@@ -2007,9 +2009,9 @@ If you wish to use Spock to test a Spring Boot application then you cannot use t
...
@@ -2007,9 +2009,9 @@ If you wish to use Spock to test a Spring Boot application then you cannot use t
`@SpringApplicationConfiguration` annotation that was
`@SpringApplicationConfiguration` annotation that was
<<boot-features-testing-spring-boot-applications,described above>> as Spock
<<boot-features-testing-spring-boot-applications,described above>> as Spock
https://code.google.com/p/spock/issues/detail?id=349[does not find the
https://code.google.com/p/spock/issues/detail?id=349[does not find the
`@ContextConfiguration` meta-annotation]. To work around
`@ContextConfiguration` meta-annotation]. To work around
this limitation, you should use
th
is limitation, you should use the `@ContextConfiguration` annotation directly and
th
e `@ContextConfiguration` annotation directly and configure it to use the Spring
configure it to use the Spring Boot-spec
fic context loader:
Boot speci
fic context loader:
[source,groovy,indent=0]
[source,groovy,indent=0]
----
----
...
...
spring-boot-integration-tests/src/test/java/org/springframework/boot/gradle/RepackagingTests.java
View file @
fd3e5ece
...
@@ -31,6 +31,11 @@ import static org.junit.Assert.assertFalse;
...
@@ -31,6 +31,11 @@ import static org.junit.Assert.assertFalse;
import
static
org
.
junit
.
Assert
.
assertThat
;
import
static
org
.
junit
.
Assert
.
assertThat
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
/**
* Integration tests for gradle repackaging.
*
* @author Andy Wilkinson
*/
public
class
RepackagingTests
{
public
class
RepackagingTests
{
private
static
final
String
BOOT_VERSION
=
ManagedDependencies
.
get
()
private
static
final
String
BOOT_VERSION
=
ManagedDependencies
.
get
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment