org.fest.test
Class ExpectedFailure.Message
java.lang.Object
org.fest.test.ExpectedFailure.Message
- Enclosing class:
- ExpectedFailure
public static class ExpectedFailure.Message
- extends Object
Understands executing test code that is expected to fail.
- Author:
- Alex Ruiz, Yvonne Wang
Method Summary |
void |
on(CodeToTest codeToTest)
Executes the given code to test. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
on
public void on(CodeToTest codeToTest)
- 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.
Copyright © 2008-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.