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)
Create an
ExpectedFailureCase expecting the given Throwable descendant. |
ExpectedFailureCase(Class<? extends Throwable> expectedThrowableType,
Class<? extends Throwable> expectedNestedThrowableType)
Create an
ExpectedFailureCase expecting the given Exception descendant, optionally with a nested
Exception descendant. |
public ExpectedFailureCase(Class<? extends Throwable> expectedThrowableType)
ExpectedFailureCase
expecting the given Throwable
descendant.Copyright © 2018 SAP SE. All rights reserved.