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
09d51089
Commit
09d51089
authored
Mar 11, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
fd0a11b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
KotlinEnableConfigurationPropertiesImportSelectorTests.kt
...KotlinEnableConfigurationPropertiesImportSelectorTests.kt
+4
-3
KotlinConstructorParametersBinderTests.kt
...properties/bind/KotlinConstructorParametersBinderTests.kt
+1
-1
No files found.
spring-boot-project/spring-boot/src/test/kotlin/org/springframework/boot/context/properties/KotlinEnableConfigurationPropertiesImportSelectorTests.kt
View file @
09d51089
...
@@ -20,7 +20,6 @@ class KotlinEnableConfigurationPropertiesImportSelectorTests {
...
@@ -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 {
...
@@ -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 {
...
@@ -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"
)
...
...
spring-boot-project/spring-boot/src/test/kotlin/org/springframework/boot/context/properties/bind/KotlinConstructorParametersBinderTests.kt
View file @
09d51089
...
@@ -192,7 +192,7 @@ class KotlinConstructorParametersBinderTests {
...
@@ -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
)
...
...
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