BAEL-890 - Kotlin-Allopen with Spring example (#2582)

* Different types of bean injection in Spring

* Difference between two dates in java

* Update README.md

* Simple clean of difference between dates

* Clean my test article

* Improve dates diff: for dates and datetimes

* Move difference between dates from core-java to libraries

* BAEL-890 - Kotlin-Allopen with Spring example
This commit is contained in:
Dassi orleando
2017-09-12 11:05:06 +01:00
committed by Grzegorz Piwowarek
parent 4edcd08cbd
commit 488eab1898
4 changed files with 47 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
package com.baeldung.kotlin.allopen
import org.springframework.context.annotation.Configuration
@Configuration
class SimpleConfiguration {
}

View File

@@ -0,0 +1,19 @@
package com.baeldung.kotlin.allopen
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.test.context.ContextConfiguration
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner
import org.springframework.test.context.support.AnnotationConfigContextLoader
@RunWith(SpringJUnit4ClassRunner::class)
@ContextConfiguration(
loader = AnnotationConfigContextLoader::class,
classes = arrayOf(SimpleConfiguration::class))
class SimpleConfigurationTest {
@Test
fun contextLoads() {
}
}