Commit 6d1d9eb8 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish

parent bc814d20
......@@ -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) {
......
......@@ -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"));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment