Class BasicTestOfExceptionalCall<T extends Exception>
java.lang.Object
org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest<TestOfExceptionalCall<T>,ExpectedException<T>,ResultOfExceptionalCall<T>,ActualException<T>>
org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTestOfExceptionalCall<T>
- Type Parameters:
T- the type of the expected exception
- All Implemented Interfaces:
Test<TestOfExceptionalCall<T>,,ExpectedException<T>, ResultOfExceptionalCall<T>, ActualException<T>> TestOfExceptionalCall<T>
public class BasicTestOfExceptionalCall<T extends Exception>
extends BasicTest<TestOfExceptionalCall<T>,ExpectedException<T>,ResultOfExceptionalCall<T>,ActualException<T>>
implements TestOfExceptionalCall<T>
A basic implementation of a test of a throwable call.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBasicTestOfExceptionalCall.Builder<T extends Exception> -
Constructor Summary
ConstructorsConstructorDescriptionBasicTestOfExceptionalCall(Environment environment, ExpectedException<T> expected) Constructs a new test of a throwable call with the given environment and expected exception. -
Method Summary
Modifier and TypeMethodDescriptionTests if the callable throws an exception and if the exception is as expected.Methods inherited from class org.tudalgo.algoutils.tutor.general.assertions.basic.BasicTest
environment, expected
-
Constructor Details
-
BasicTestOfExceptionalCall
Constructs a new test of a throwable call with the given environment and expected exception.
- Parameters:
environment- the environmentexpected- the expected exception
-
-
Method Details
-
run
Description copied from interface:TestOfExceptionalCallTests if the callable throws an exception and if the exception is as expected.- Specified by:
runin interfaceTestOfExceptionalCall<T extends Exception>- Parameters:
callable- the callable under test- Returns:
- the result of the test
-