public static class ExpectedFailure.Message extends Object
public void on(CodeToTest codeToTest)
codeToTest
- the code to test.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-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.