File tree Expand file tree Collapse file tree
main/kotlin/com/baeldung/kotlin
test/kotlin/com/baeldung/kotlin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 <dependency >
1313 <groupId >org.jetbrains.kotlin</groupId >
1414 <artifactId >kotlin-stdlib</artifactId >
15- <version >1.0.4 </version >
15+ <version >${kotlin-stdlib.version} </version >
1616 </dependency >
1717 <dependency >
1818 <groupId >org.jetbrains.kotlin</groupId >
1919 <artifactId >kotlin-test-junit</artifactId >
20- <version >1.0.4 </version >
20+ <version >${kotlin-test-junit.version} </version >
2121 <scope >test</scope >
2222 </dependency >
2323 <dependency >
2424 <groupId >junit</groupId >
2525 <artifactId >junit</artifactId >
26- <version >4.12 </version >
26+ <version >${junit.version} </version >
2727 <scope >test</scope >
2828 </dependency >
2929 </dependencies >
3535 <plugin >
3636 <artifactId >kotlin-maven-plugin</artifactId >
3737 <groupId >org.jetbrains.kotlin</groupId >
38- <version >1.0.4 </version >
38+ <version >${kotlin-maven-plugin.version} </version >
3939 <executions >
4040 <execution >
4141 <id >compile</id >
5555 </plugins >
5656 </build >
5757
58+ <properties >
59+ <junit .version>4.12</junit .version>
60+ <kotlin-test-junit .version>1.0.4</kotlin-test-junit .version>
61+ <kotlin-stdlib .version>1.0.4</kotlin-stdlib .version>
62+ <kotlin-maven-plugin .version>1.0.4</kotlin-maven-plugin .version>
63+ </properties >
64+
5865</project >
Original file line number Diff line number Diff line change 1- package com.baeldung
1+ package com.baeldung.kotlin
22
33fun main (args : Array <String >){
44 println (" hello word" )
Original file line number Diff line number Diff line change 1- package com.baeldung
1+ package com.baeldung.kotlin
22
33open class Item (val id : String , val name : String = " unknown_name" ) {
44 open fun getIdOfItem (): String {
Original file line number Diff line number Diff line change 1- package com.baeldung
1+ package com.baeldung.kotlin
22
33import java.util.*
44
Original file line number Diff line number Diff line change 1- package com.baeldung
1+ package com.baeldung.kotlin
22
33import java.util.concurrent.ThreadLocalRandom
44
Original file line number Diff line number Diff line change 1- package com.baeldung
1+ package com.baeldung.kotlin
22
33import org.junit.Test
44import kotlin.test.assertNotNull
Original file line number Diff line number Diff line change 1- package com.baeldung
1+ package com.baeldung.kotlin
22
3+ import com.baeldung.kotlin.ListExtension
34import org.junit.Test
45import kotlin.test.assertTrue
56
You can’t perform that action at this time.
0 commit comments