Skip to content

Instantly share code, notes, and snippets.

@dnorton
Created March 15, 2016 14:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnorton/b964c34534fb4777d53d to your computer and use it in GitHub Desktop.
Save dnorton/b964c34534fb4777d53d to your computer and use it in GitHub Desktop.
simple unit test example in Kotlin
import org.junit.Test
import org.assertj.core.api.Assertions
import org.junit.BeforeClass
class ThingTest {
companion object {
@JvmStatic
@BeforeClass fun init() {
println("nada")
}
}
@Test fun testParse() {
Assertions.assertThat("hi").isEqualTo("hi")
}
}
@lowks
Copy link

lowks commented Feb 1, 2018

How do you run this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment