| Package | Description |
|---|---|
| org.fest.assertions.error | |
| org.fest.assertions.internal |
| Modifier and Type | Method and Description |
|---|---|
static ErrorMessageFactory |
ShouldBeAfter.shouldBeAfter(java.util.Date actual,
java.util.Date other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeAfter. |
static ErrorMessageFactory |
ShouldBeAfterOrEqualsTo.shouldBeAfterOrEqualsTo(java.util.Date actual,
java.util.Date other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeAfterOrEqualsTo. |
static ErrorMessageFactory |
ShouldBeBefore.shouldBeBefore(java.util.Date actual,
java.util.Date other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBefore. |
static ErrorMessageFactory |
ShouldBeBeforeOrEqualsTo.shouldBeBeforeOrEqualsTo(java.util.Date actual,
java.util.Date other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBeforeOrEqualsTo. |
static ErrorMessageFactory |
ShouldBeBetween.shouldBeBetween(java.util.Date actual,
java.util.Date start,
java.util.Date end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBetween. |
static AssertionErrorFactory |
ShouldBeEqual.shouldBeEqual(java.lang.Object actual,
java.lang.Object expected,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static <T extends java.lang.Comparable<? super T>> |
ShouldBeGreater.shouldBeGreater(T actual,
T other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeGreater. |
static <T extends java.lang.Comparable<? super T>> |
ShouldBeGreaterOrEqual.shouldBeGreaterOrEqual(T actual,
T other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeGreaterOrEqual. |
static ErrorMessageFactory |
ShouldBeIn.shouldBeIn(java.lang.Object actual,
java.lang.Object values,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldBeInTheFuture.shouldBeInTheFuture(java.util.Date actual,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeInTheFuture. |
static ErrorMessageFactory |
ShouldBeInThePast.shouldBeInThePast(java.util.Date actual,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeInThePast. |
static <T extends java.lang.Comparable<? super T>> |
ShouldBeLess.shouldBeLess(T actual,
T other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeLess. |
static <T extends java.lang.Comparable<? super T>> |
ShouldBeLessOrEqual.shouldBeLessOrEqual(T actual,
T other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeLessOrEqual. |
static ErrorMessageFactory |
ShouldBeSubsetOf.shouldBeSubsetOf(java.lang.Object actual,
java.lang.Object values,
java.lang.Iterable<?> unexpected,
ComparisonStrategy comparisonStrategy)
Creates a new
|
static ErrorMessageFactory |
ShouldBeToday.shouldBeToday(java.util.Date actual,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeToday. |
static ErrorMessageFactory |
ShouldContain.shouldContain(java.lang.Object actual,
java.lang.Object expected,
java.lang.Object notFound,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContain. |
static ErrorMessageFactory |
ShouldContainString.shouldContain(java.lang.String actual,
java.lang.String sequence,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldContainAtIndex.shouldContainAtIndex(java.lang.Object actual,
java.lang.Object expected,
Index index,
java.lang.Object found,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainAtIndex. |
static ErrorMessageFactory |
ShouldContainExactly.shouldContainExactly(java.lang.Object actualElement,
java.lang.Object expectedElement,
int indexOfDifferentElements,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainExactly for the case where actual and expected have the same
elements in different order according to the given ComparisonStrategy. |
static ErrorMessageFactory |
ShouldContainExactly.shouldContainExactly(java.lang.Object actual,
java.lang.Object expected,
java.lang.Object notFound,
java.lang.Object notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainExactly. |
static ErrorMessageFactory |
ShouldContainOnly.shouldContainOnly(java.lang.Object actual,
java.lang.Object expected,
java.lang.Object notFound,
java.lang.Object notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainOnly. |
static ErrorMessageFactory |
ShouldContainStringOnlyOnce.shouldContainOnlyOnce(java.lang.String actual,
java.lang.String sequence,
int occurences,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldContainSequence.shouldContainSequence(java.lang.Object actual,
java.lang.Object sequence,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldEndWith.shouldEndWith(java.lang.Object actual,
java.lang.Object expected,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldNotBeBetween.shouldNotBeBetween(java.util.Date actual,
java.util.Date start,
java.util.Date end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldNotBeBetween. |
static ErrorMessageFactory |
ShouldNotBeEqual.shouldNotBeEqual(java.lang.Object actual,
java.lang.Object other,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldNotBeIn.shouldNotBeIn(java.lang.Object actual,
java.lang.Object values,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldNotContain.shouldNotContain(java.lang.Object actual,
java.lang.Object expected,
java.lang.Object found,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldNotContain. |
static ErrorMessageFactory |
ShouldNotContainString.shouldNotContain(java.lang.String actual,
java.lang.String sequence,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldNotContainAtIndex.shouldNotContainAtIndex(java.lang.Object actual,
java.lang.Object expected,
Index index,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldNotContainAtIndex. |
static ErrorMessageFactory |
ShouldNotHaveDuplicates.shouldNotHaveDuplicates(java.lang.Object actual,
java.lang.Object duplicates,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldStartWith.shouldStartWith(java.lang.Object actual,
java.lang.Object expected,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractComparisonStrategy
Base implementation of
ComparisonStrategy contract. |
class |
ComparatorBasedComparisonStrategy
Implements
ComparisonStrategy contract with a comparison strategy based on a Comparator. |
class |
StandardComparisonStrategy
Implements
ComparisonStrategy contract with a comparison strategy based on Object.equals(Object) method, it is
also based on Comparable.compareTo(Object) when Object are Comparable method. |
Copyright © 2007–2018. All rights reserved.