From cc45c0b842b1af9b6c6ddf47e8ce4b8d3295767e Mon Sep 17 00:00:00 2001 From: Archimedes Trajano Date: Thu, 11 May 2017 10:09:32 -0400 Subject: [PATCH] Added a simple JUnit Kotlin test (not working at the moment) > [ERROR] Failed to execute goal org.jetbrains.kotlin:kotlin-maven-plugin:1.1.2-3:test-compile (test-compile) on project jee-domain: Compilation failure > [ERROR] D:\p\jee\jee-domain\src\test\kotlin\net\trajano\jee\domain\kotlin\test\KotlinSanityTest.kt:[7,3] Cannot access class 'kotlin.reflect.KClass'. Check your module classpath for missing or conflicting dependencies --- jee-domain/pom.xml | 65 ++++++++++++++++++- .../domain/kotlin/test/KotlinSanityTest.kt | 11 ++++ 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 jee-domain/src/test/kotlin/net/trajano/jee/domain/kotlin/test/KotlinSanityTest.kt diff --git a/jee-domain/pom.xml b/jee-domain/pom.xml index 16d4b98..ea820ee 100644 --- a/jee-domain/pom.xml +++ b/jee-domain/pom.xml @@ -11,7 +11,13 @@ Domain objects implementation This is an EJB that contains the implementation for the domain objects. - + + + org.jetbrains.kotlin + kotlin-stdlib + 1.1.2-3 + + @@ -62,8 +68,65 @@ + + org.jetbrains.kotlin + kotlin-maven-plugin + 1.1.2-3 + + + compile + + compile + + + + ${project.basedir}/src/main/kotlin + ${project.basedir}/src/main/java + + + + + test-compile + + test-compile + + + + ${project.basedir}/src/test/kotlin + ${project.basedir}/src/test/java + + + + + maven-compiler-plugin + + + + default-compile + none + + + + default-testCompile + none + + + java-compile + compile + + compile + + + + java-test-compile + test-compile + + testCompile + + + diff --git a/jee-domain/src/test/kotlin/net/trajano/jee/domain/kotlin/test/KotlinSanityTest.kt b/jee-domain/src/test/kotlin/net/trajano/jee/domain/kotlin/test/KotlinSanityTest.kt new file mode 100644 index 0000000..402097b --- /dev/null +++ b/jee-domain/src/test/kotlin/net/trajano/jee/domain/kotlin/test/KotlinSanityTest.kt @@ -0,0 +1,11 @@ +package net.trajano.jee.domain.kotlin.test + +import org.junit.Assert +import org.junit.Test + +class KotlinSanityTest { + @Test + fun firstTest() { + Assert.assertTrue(1 == 1) + } +} \ No newline at end of file