org.fest.assertions.error
Class ShouldBe

java.lang.Object
  extended by org.fest.assertions.error.BasicErrorMessageFactory
      extended by org.fest.assertions.error.ShouldBe
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldBe
extends BasicErrorMessageFactory

Creates an error message indicating that an assertion that verifies that a value satisfies a Condition failed.

Author:
Yvonne Wang

Method Summary
static
<T> ErrorMessageFactory
shouldBe(T actual, Condition<T> condition)
          Creates a new ShouldBe.
 
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

shouldBe

public static <T> ErrorMessageFactory shouldBe(T actual,
                                               Condition<T> condition)
Creates a new ShouldBe.

Type Parameters:
T - guarantees that the type of the actual value and the generic type of the Condition are the same.
Parameters:
actual - the actual value in the failed assertion.
condition - the Condition.
Returns:
the created ErrorMessageFactory.


Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.