Package org.fest.assertions.error
Class ShouldStartWith
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.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 aString.- Author:
- Alex Ruiz, Joel Costigliola
-
-
Field Summary
-
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactoryshouldStartWith(java.lang.Object actual, java.lang.Object expected)Creates a new.ShouldStartWithstatic ErrorMessageFactoryshouldStartWith(java.lang.Object actual, java.lang.Object expected, ComparisonStrategy comparisonStrategy)Creates a new.ShouldStartWith-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldStartWith
public static ErrorMessageFactory shouldStartWith(java.lang.Object actual, java.lang.Object expected, ComparisonStrategy comparisonStrategy)
Creates a new.ShouldStartWith- Parameters:
actual- the actual value in the failed assertion.expected- the value or sequence of values thatactualis expected to start with.comparisonStrategy- theComparisonStrategyused to evaluate assertion.- Returns:
- the created
ErrorMessageFactory.
-
shouldStartWith
public static ErrorMessageFactory shouldStartWith(java.lang.Object actual, java.lang.Object expected)
Creates a new.ShouldStartWith- Parameters:
actual- the actual value in the failed assertion.expected- the value or sequence of values thatactualis expected to start with.- Returns:
- the created
ErrorMessageFactory.
-
-