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
25c4e261
Commit
25c4e261
authored
Sep 16, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing tests
See gh-6897
parent
5f7897ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
AutoConfigureTestDatabaseWithNoDatabaseIntegrationTests.java
...oConfigureTestDatabaseWithNoDatabaseIntegrationTests.java
+2
-2
SpringBootConfigurationFinder.java
...work/boot/test/context/SpringBootConfigurationFinder.java
+2
-1
No files found.
spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/orm/jpa/AutoConfigureTestDatabaseWithNoDatabaseIntegrationTests.java
View file @
25c4e261
...
...
@@ -20,7 +20,7 @@ import org.junit.Test;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.
SpringBoo
tConfiguration
;
import
org.springframework.boot.
test.context.Tes
tConfiguration
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.test.context.junit4.SpringRunner
;
...
...
@@ -44,7 +44,7 @@ public class AutoConfigureTestDatabaseWithNoDatabaseIntegrationTests {
assertThat
(
this
.
context
).
isNotNull
();
}
@
SpringBoo
tConfiguration
@
Tes
tConfiguration
static
class
Config
{
}
...
...
spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootConfigurationFinder.java
View file @
25c4e261
...
...
@@ -67,7 +67,8 @@ final class SpringBootConfigurationFinder {
Set
<
BeanDefinition
>
components
=
this
.
scanner
.
findCandidateComponents
(
source
);
if
(!
components
.
isEmpty
())
{
Assert
.
state
(
components
.
size
()
==
1
,
"Found multiple @SpringBootConfiguration annotated classes"
);
"Found multiple @SpringBootConfiguration annotated classes "
+
components
);
return
ClassUtils
.
resolveClassName
(
components
.
iterator
().
next
().
getBeanClassName
(),
null
);
}
...
...
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