Package org.fest.test
Class ExpectedFailure.Message
java.lang.Object
org.fest.test.ExpectedFailure.Message
- Enclosing class:
- ExpectedFailure
Understands executing test code that is expected to fail.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
private void
void
on
(CodeToTest codeToTest) Executes the given code to test.
-
Field Details
-
errorType
-
message
-
-
Constructor Details
-
Message
-
-
Method Details
-
on
Executes the given code to test.- Parameters:
codeToTest
- the code to test.- Throws:
AssertionError
- if an exception of the expected type is never thrown by the code to test.AssertionError
- if the type of the thrown exception is different than the expected type.AssertionError
- if the message of the thrown exception is different than the expected message.
-
errorTypeName
-
fail
-