org.fest.assertions.error
Class ShouldEndWith

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

public class ShouldEndWith
extends BasicErrorMessageFactory

Creates an error message indicating that an assertion that verifies that a group of elements ends with a given value or sequence of values failed. A group of elements can be a collection, an array or a String.

Author:
Alex Ruiz, Joel Costigliola

Method Summary
static ErrorMessageFactory shouldEndWith(Object actual, Object expected)
          Creates a new ShouldEndWith.
static ErrorMessageFactory shouldEndWith(Object actual, Object expected, org.fest.util.ComparisonStrategy comparisonStrategy)
          Creates a new ShouldEndWith.
 
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

shouldEndWith

public static ErrorMessageFactory shouldEndWith(Object actual,
                                                Object expected,
                                                org.fest.util.ComparisonStrategy comparisonStrategy)
Creates a new ShouldEndWith.

Parameters:
actual - the actual value in the failed assertion.
expected - the value or sequence of values that actual is expected to start with.
comparisonStrategy - the ComparisonStrategy used to evaluate assertion.
Returns:
the created ErrorMessageFactory.

shouldEndWith

public static ErrorMessageFactory shouldEndWith(Object actual,
                                                Object expected)
Creates a new ShouldEndWith.

Parameters:
actual - the actual value in the failed assertion.
expected - the value or sequence of values that actual is expected to start with.
Returns:
the created ErrorMessageFactory.


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