org.assertj.core.error
Class ShouldStartWith

java.lang.Object
  extended by org.assertj.core.error.BasicErrorMessageFactory
      extended by org.assertj.core.error.ShouldStartWith
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldStartWith
extends BasicErrorMessageFactory

Creates an error message indicating that an assertion that verifies that a group of elements starts 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

Field Summary
 
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format
 
Method Summary
static ErrorMessageFactory shouldStartWith(Object actual, Object expected)
          Creates a new ShouldStartWith.
static ErrorMessageFactory shouldStartWith(Object actual, Object expected, ComparisonStrategy comparisonStrategy)
          Creates a new ShouldStartWith.
 
Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, equals, hashCode, toString, unquotedString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

shouldStartWith

public static ErrorMessageFactory shouldStartWith(Object actual,
                                                  Object expected,
                                                  ComparisonStrategy comparisonStrategy)
Creates a new ShouldStartWith.

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.

shouldStartWith

public static ErrorMessageFactory shouldStartWith(Object actual,
                                                  Object expected)
Creates a new ShouldStartWith.

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 © 2013–2015 AssertJ. All rights reserved.