Commonize AssertionError(message, cause) constructor

This commit is contained in:
Abduqodiri Qurbonzoda
2023-04-09 00:20:42 +03:00
committed by Space Team
parent 8e995e6c62
commit c961c15729
7 changed files with 9 additions and 5 deletions
@@ -29,7 +29,7 @@ class ExceptionTest {
@Test fun noWhenBranchMatchedException() = @Suppress("DEPRECATION_ERROR") testCreateException(::NoWhenBranchMatchedException, ::NoWhenBranchMatchedException, ::NoWhenBranchMatchedException, ::NoWhenBranchMatchedException)
@Test fun uninitializedPropertyAccessException() = @Suppress("DEPRECATION_ERROR") testCreateException(::UninitializedPropertyAccessException, ::UninitializedPropertyAccessException, ::UninitializedPropertyAccessException, ::UninitializedPropertyAccessException)
@Test fun assertionError() = testCreateException(::AssertionError, ::AssertionError, ::AssertionError)
@Test fun assertionError() = testCreateException(::AssertionError, ::AssertionError, ::AssertionError, ::AssertionError)
private fun <T : Throwable> testCreateException(