Browse Source

Polishing

pull/22572/head
Sebastien Deleuze 7 years ago
parent
commit
6266370a7a
  1. 4
      spring-beans/src/test/kotlin/org/springframework/beans/KotlinBeanUtilsTests.kt

4
spring-beans/src/test/kotlin/org/springframework/beans/BeanUtilsKotlinTests.kt → spring-beans/src/test/kotlin/org/springframework/beans/KotlinBeanUtilsTests.kt

@ -25,7 +25,7 @@ import org.junit.Test
* @author Sebastien Deleuze * @author Sebastien Deleuze
*/ */
@Suppress("unused", "UNUSED_PARAMETER") @Suppress("unused", "UNUSED_PARAMETER")
class BeanUtilsKotlinTests { class KotlinBeanUtilsTests {
@Test @Test
fun `Instantiate immutable class`() { fun `Instantiate immutable class`() {
@ -52,7 +52,7 @@ class BeanUtilsKotlinTests {
} }
@Test @Test
fun `Instantiate immutable class with optional parameter specified with null value`() { fun `Instantiate immutable class with optional parameter specified with null value`() {
val constructor = BeanUtils.findPrimaryConstructor(Bar::class.java)!! val constructor = BeanUtils.findPrimaryConstructor(Bar::class.java)!!
val bar = BeanUtils.instantiateClass(constructor, "a", null) val bar = BeanUtils.instantiateClass(constructor, "a", null)
assertEquals("a", bar.param1) assertEquals("a", bar.param1)
Loading…
Cancel
Save