Commit 142a0cbb authored by Stephane Nicoll's avatar Stephane Nicoll

Fix warnings in spring-boot-autoconfigure's Kotlin test code

Closes gh-19877
parent eb9b1972
......@@ -29,9 +29,9 @@ class KotlinNoSuchBeanFailureAnalyzerNoKotlinReflectTests {
val analysis = analyzeFailure(
createFailure(ConstructorBoundConfigurationPropertiesConfiguration::class.java))
assertThat(analysis!!.getAction()).startsWith(
java.lang.String.format("Consider defining a bean of type '%s' in your configuration.", String::class.java!!.getName()))
assertThat(analysis!!.getAction()).contains(java.lang.String.format(
"Consider adding a dependency on kotlin-reflect so that the constructor used for @ConstructorBinding can be located. Also, ensure that @ConstructorBinding is present on '%s' ", ConstructorBoundProperties::class.java!!.getName()))
java.lang.String.format("Consider defining a bean of type '%s' in your configuration.", String::class.java.getName()))
assertThat(analysis.getAction()).contains(java.lang.String.format(
"Consider adding a dependency on kotlin-reflect so that the constructor used for @ConstructorBinding can be located. Also, ensure that @ConstructorBinding is present on '%s' ",ConstructorBoundProperties::class.java.getName()))
}
private fun createFailure(config: Class<*>, vararg environment: String): FatalBeanException? {
......
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