Assertions.assertThatThrownBy()
.@Deprecated public abstract class ExpectedFailureCase extends Object
To use ExpectedFailureCase
, create an anonymous inner class and overload the
test()
method.
Constructor and Description |
---|
ExpectedFailureCase(Class<? extends Throwable> expectedThrowableType)
Deprecated.
Create an
ExpectedFailureCase expecting the given Throwable descendant. |
ExpectedFailureCase(Class<? extends Throwable> expectedThrowableType,
Class<? extends Throwable> expectedNestedThrowableType)
Deprecated.
Create an
ExpectedFailureCase expecting the given Exception descendant, optionally with a nested
Exception descendant. |
Modifier and Type | Method and Description |
---|---|
abstract void |
test()
Deprecated.
Runs the test.
|
public ExpectedFailureCase(Class<? extends Throwable> expectedThrowableType)
ExpectedFailureCase
expecting the given Throwable
descendant.Copyright © 2019 SAP SE. All rights reserved.