This commit is contained in:
Stephane Nicoll 2019-03-11 17:24:52 +01:00
parent fd0a11b7a7
commit 09d51089ba
2 changed files with 5 additions and 4 deletions

View File

@ -20,7 +20,6 @@ class KotlinEnableConfigurationPropertiesImportSelectorTests {
private val beanFactory = DefaultListableBeanFactory() private val beanFactory = DefaultListableBeanFactory()
@Test @Test
fun `type with default constructor should register generic bean definition`() { fun `type with default constructor should register generic bean definition`() {
this.registrar.registerBeanDefinitions( this.registrar.registerBeanDefinitions(
@ -45,7 +44,8 @@ class KotlinEnableConfigurationPropertiesImportSelectorTests {
getAnnotationMetadata(TestConfiguration::class.java), this.beanFactory) getAnnotationMetadata(TestConfiguration::class.java), this.beanFactory)
val beanDefinition = this.beanFactory.getBeanDefinition( val beanDefinition = this.beanFactory.getBeanDefinition(
"baz-org.springframework.boot.context.properties.KotlinEnableConfigurationPropertiesImportSelectorTests\$BazProperties") "baz-org.springframework.boot.context.properties.KotlinEnableConfigurationPropertiesImportSelectorTests\$BazProperties")
assertThat(beanDefinition).isExactlyInstanceOf(ConfigurationPropertiesBeanDefinition::class.java) assertThat(beanDefinition).isExactlyInstanceOf(
ConfigurationPropertiesBeanDefinition::class.java)
} }
@Test @Test
@ -63,7 +63,8 @@ class KotlinEnableConfigurationPropertiesImportSelectorTests {
} }
@EnableConfigurationProperties(FooProperties::class, BarProperties::class, BazProperties::class, BingProperties::class) @EnableConfigurationProperties(FooProperties::class, BarProperties::class,
BazProperties::class, BingProperties::class)
class TestConfiguration class TestConfiguration
@ConfigurationProperties(prefix = "foo") @ConfigurationProperties(prefix = "foo")

View File

@ -192,7 +192,7 @@ class KotlinConstructorParametersBinderTests {
constructor(intValue: Int, longValue: Long) : this(intValue) constructor(intValue: Int, longValue: Long) : this(intValue)
} }
class DefaultConstructorBean {} class DefaultConstructorBean
class ExampleNestedBean(val valueBean: ExampleValueBean) class ExampleNestedBean(val valueBean: ExampleValueBean)