Skip to content

Instantly share code, notes, and snippets.

@bodiam
Created September 23, 2021 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bodiam/2f342b6d85ff364453e0dad76b6bd0d6 to your computer and use it in GitHub Desktop.
Save bodiam/2f342b6d85ff364453e0dad76b6bd0d6 to your computer and use it in GitHub Desktop.
SoftAssertions for AssertJ in Kotlin
import org.assertj.core.api.SoftAssertions
fun softAssert(function: SoftAssertions.() -> Unit) {
SoftAssertions().apply { function() }.assertAll()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment