Commonize AssertionError(message, cause) constructor
This commit is contained in:
committed by
Space Team
parent
8e995e6c62
commit
c961c15729
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user