Skip to content

comdotlinux/assertj-core-kotlin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assertj-core-kotlin Build Status Coverage Status Maven Central

a thin and simple AssertJ wrapper for Kotlin

Motivation

AssertJ ist not usable from Kotlin by default, because there are a lot of overload ambiguity compile errors.

Usage

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")
    }

}

Disclaimer

The software is not yet a complete wrapper. Your contributions are welcome.

About

a simple AssertJ wrapper for Kotlin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%