-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
THESE TWO FILES ARE TO TEST THE BUILD SCRIPTS. They are not part of t…
…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
1 parent
fccfe24
commit 0efd26d
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
src/test/java/org/javarosa/kotlintest/KotlinGradleSetupTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} |