Skip to content

Commit

Permalink
THESE TWO FILES ARE TO TEST THE BUILD SCRIPTS. They are not part of t…
Browse files Browse the repository at this point in the history
…he javarosa functionality, and can be removed once the capability to build kotlin from gradle and from maven is completed.

Added a kotlin file to `src/test` and to `src/main` to ensure compilation finds appropriate kotlin files and builds them.
  • Loading branch information
jack-bolles committed Aug 2, 2023
1 parent fccfe24 commit 0efd26d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/javarosa/kotlintest/ThisOrThat.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package org.javarosa.kotlintest

enum class ThisOrThat {
THIS(), THAT(), OTHER()
}
14 changes: 14 additions & 0 deletions src/test/java/org/javarosa/kotlintest/KotlinGradleSetupTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package org.javarosa.kotlintest

import junit.framework.TestCase
import org.javarosa.kotlintest.ThisOrThat.THAT
import org.javarosa.kotlintest.ThisOrThat.THIS
import org.junit.Test

class KotlinGradleSetupTest {
@Test
fun `can compile Kotlin in directory`() {
TestCase.assertNotSame(THIS, THAT)
TestCase.assertSame(THIS, THIS)
}
}

0 comments on commit 0efd26d

Please sign in to comment.