From 19afd9417726224a4054fbdb7eeec6fd1de459fd Mon Sep 17 00:00:00 2001 From: pivovarit Date: Sun, 29 Jan 2017 15:29:55 +0100 Subject: [PATCH] Fix kotlin pom.xml --- kotlin/pom.xml | 66 ++++++++++++------- .../kotlin/KotlinScalaInteroperabilityTest.kt | 3 +- 2 files changed, 46 insertions(+), 23 deletions(-) diff --git a/kotlin/pom.xml b/kotlin/pom.xml index 68944f08ac..f928cc4037 100644 --- a/kotlin/pom.xml +++ b/kotlin/pom.xml @@ -28,9 +28,8 @@ + - ${project.basedir}/src/main/kotlin - ${project.basedir}/src/test/kotlin kotlin-maven-plugin @@ -38,29 +37,51 @@ ${kotlin-maven-plugin.version} - - - src/main/java - src/main/kotlin - - compile - - compile - - - - + compile - src/test/java - src/test/kotlin + ${project.basedir}/src/main/kotlin + ${project.basedir}/src/main/java + + test-compile - - test-compile - + test-compile + + + ${project.basedir}/src/test/kotlin + ${project.basedir}/src/test/java + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.5.1 + + + + default-compile + none + + + + default-testCompile + none + + + java-compile + compile + compile + + + java-test-compile + test-compile + testCompile @@ -69,9 +90,10 @@ 4.12 - 1.0.4 - 1.0.4 - 1.0.4 + 1.0.6 + 1.0.6 + 1.0.6 + 1.0.6 \ No newline at end of file diff --git a/kotlin/src/test/kotlin/com/baeldung/kotlin/KotlinScalaInteroperabilityTest.kt b/kotlin/src/test/kotlin/com/baeldung/kotlin/KotlinScalaInteroperabilityTest.kt index f671c3af8b..6ba7f0976f 100644 --- a/kotlin/src/test/kotlin/com/baeldung/kotlin/KotlinScalaInteroperabilityTest.kt +++ b/kotlin/src/test/kotlin/com/baeldung/kotlin/KotlinScalaInteroperabilityTest.kt @@ -6,12 +6,13 @@ import kotlin.test.assertEquals class KotlinScalaInteroperabilityTest { + @Test fun givenLowercaseString_whenExecuteMethodFromJavaStringUtils_shouldReturnStringUppercase() { //given val name = "tom" - //when + //whene val res = StringUtils.toUpperCase(name) //then