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
6d1d9eb8
Commit
6d1d9eb8
authored
Feb 12, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
bc814d20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
DataSourceBeanCreationFailureAnalyzerTests.java
...gure/jdbc/DataSourceBeanCreationFailureAnalyzerTests.java
+3
-2
SampleKafkaApplication.java
...ka/src/main/java/sample/kafka/SampleKafkaApplication.java
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/DataSourceBeanCreationFailureAnalyzerTests.java
View file @
6d1d9eb8
...
...
@@ -59,8 +59,8 @@ public class DataSourceBeanCreationFailureAnalyzerTests {
public
void
failureAnalysisIsPerformedWithActiveProfiles
()
{
this
.
environment
.
setActiveProfiles
(
"first"
,
"second"
);
FailureAnalysis
failureAnalysis
=
performAnalysis
(
TestConfiguration
.
class
);
assertThat
(
failureAnalysis
.
getAction
())
.
contains
(
"(the profiles first,¬second are currently active)"
);
assertThat
(
failureAnalysis
.
getAction
())
.
contains
(
"(the profiles first,¬second are currently active)"
);
}
private
FailureAnalysis
performAnalysis
(
Class
<?>
configuration
)
{
...
...
@@ -77,6 +77,7 @@ public class DataSourceBeanCreationFailureAnalyzerTests {
context
.
setEnvironment
(
this
.
environment
);
context
.
register
(
configuration
);
context
.
refresh
();
context
.
close
();
return
null
;
}
catch
(
BeanCreationException
ex
)
{
...
...
spring-boot-samples/spring-boot-sample-kafka/src/main/java/sample/kafka/SampleKafkaApplication.java
View file @
6d1d9eb8
...
...
@@ -30,7 +30,7 @@ public class SampleKafkaApplication {
@Bean
public
ApplicationRunner
runner
(
Producer
producer
)
{
return
args
->
producer
.
send
(
new
SampleMessage
(
1
,
"A simple test message"
));
return
(
args
)
->
producer
.
send
(
new
SampleMessage
(
1
,
"A simple test message"
));
}
}
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