a thin and simple AssertJ wrapper for Kotlin
AssertJ ist not usable from Kotlin by default, because there are a lot of overload ambiguity compile errors.
Just import assertThat
from KotlinAssertions
and most of AssertJ should work again:
import org.assertj.core.api.KotlinAssertions.assertThat
import org.junit.Test
class KotlinAssertionsExample {
@Test
fun simpleAssertion() {
assertThat(10L.toString()).isEqualTo("10")
}
}
The software is not yet a complete wrapper. Your contributions are welcome.