Summary
Duplicate of #1787 because that is closed:
Example
fun thisFunctionDoesNothing() {
println("i did nothing")
}
@Test
fun `this test should not fail, unfortunately it does`() {
assertThatThrownBy { thisFunctionDoesNothing() }.doesNotThrowAnyException()
}
And i get the exception:
Expecting code to raise a throwable.
java.lang.AssertionError:
Expecting code to raise a throwable.
Summary
Duplicate of #1787 because that is closed:
Example
And i get the exception: