[Test] Handle any Throwable from test instead of AssertionError

This commit is contained in:
Dmitriy Novozhilov
2021-01-22 12:34:56 +03:00
parent c111c33950
commit 42f9442728
11 changed files with 21 additions and 17 deletions
@@ -40,7 +40,7 @@ object JUnit4Assertions : Assertions() {
KtUsefulTestCase.assertSameElements(message?.invoke() ?: "", expected, actual)
}
override fun assertAll(exceptions: List<AssertionError>) {
override fun assertAll(exceptions: List<Throwable>) {
exceptions.forEach { throw it }
}