public class ShouldBeBefore extends BasicErrorMessageFactory
Object
is before another one failed.arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldBeBefore(Object actual,
Object other)
Creates a new
ShouldBeBefore . |
static ErrorMessageFactory |
shouldBeBefore(Object actual,
Object other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBefore . |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldBeBefore(Object actual, Object other, ComparisonStrategy comparisonStrategy)
ShouldBeBefore
.actual
- the actual value in the failed assertion.other
- the value used in the failed assertion to compare the actual value to.comparisonStrategy
- the ComparisonStrategy
used to evaluate assertion.ErrorMessageFactory
.public static ErrorMessageFactory shouldBeBefore(Object actual, Object other)
ShouldBeBefore
.actual
- the actual value in the failed assertion.other
- the value used in the failed assertion to compare the actual value to.ErrorMessageFactory
.Copyright © 2014–2016 AssertJ. All rights reserved.