Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.error | |
org.assertj.core.internal |
Modifier and Type | Method and Description |
---|---|
protected S |
AbstractListAssert.usingComparisonStrategy(ComparisonStrategy comparisonStrategy) |
protected S |
AbstractIterableAssert.usingComparisonStrategy(ComparisonStrategy comparisonStrategy) |
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
ShouldContainExactly.elementsDifferAtIndex(Object actualElement,
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 |
ShouldBeAfter.shouldBeAfter(Date actual,
Date other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeAfter . |
static ErrorMessageFactory |
ShouldBeAfterOrEqualsTo.shouldBeAfterOrEqualsTo(Date actual,
Date other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeAfterOrEqualsTo . |
static ErrorMessageFactory |
ShouldBeAfterYear.shouldBeAfterYear(Date actual,
int year,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeAfterYear . |
static ErrorMessageFactory |
ShouldBeBefore.shouldBeBefore(Date actual,
Date other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBefore . |
static ErrorMessageFactory |
ShouldBeBeforeOrEqualsTo.shouldBeBeforeOrEqualsTo(Date actual,
Date other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBeforeOrEqualsTo . |
static ErrorMessageFactory |
ShouldBeBeforeYear.shouldBeBeforeYear(Date actual,
int year,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBeforeYear . |
static ErrorMessageFactory |
ShouldBeBetween.shouldBeBetween(Date actual,
Date start,
Date end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBetween . |
static <T extends Comparable<? super T>> |
ShouldBeBetween.shouldBeBetween(T actual,
T start,
T end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeBetween . |
static AssertionErrorFactory |
ShouldBeEqual.shouldBeEqual(Object actual,
Object expected,
ComparisonStrategy comparisonStrategy,
Representation representation)
Creates a new
. |
static <T extends Comparable<? super T>> |
ShouldBeGreater.shouldBeGreater(T actual,
T other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeGreater . |
static <T extends Comparable<? super T>> |
ShouldBeGreaterOrEqual.shouldBeGreaterOrEqual(T actual,
T other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeGreaterOrEqual . |
static ErrorMessageFactory |
ShouldBeIn.shouldBeIn(Object actual,
Object values,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldBeInTheFuture.shouldBeInTheFuture(Date actual,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeInTheFuture . |
static ErrorMessageFactory |
ShouldBeInThePast.shouldBeInThePast(Date actual,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeInThePast . |
static <T extends Comparable<? super T>> |
ShouldBeLess.shouldBeLess(T actual,
T other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeLess . |
static <T extends Comparable<? super T>> |
ShouldBeLessOrEqual.shouldBeLessOrEqual(T actual,
T other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeLessOrEqual . |
static ErrorMessageFactory |
ShouldBeSubsetOf.shouldBeSubsetOf(Object actual,
Object values,
Iterable<?> unexpected,
ComparisonStrategy comparisonStrategy)
Creates a new
|
static ErrorMessageFactory |
ShouldBeToday.shouldBeToday(Date actual,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeToday . |
static ErrorMessageFactory |
ShouldContainCharSequence.shouldContain(CharSequence actual,
CharSequence[] strings,
Set<? extends CharSequence> notFound,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldContainCharSequence.shouldContain(CharSequence actual,
CharSequence sequence,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldContain.shouldContain(Object actual,
Object expected,
Object notFound,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContain . |
static ErrorMessageFactory |
ShouldContainAtIndex.shouldContainAtIndex(Object actual,
Object expected,
Index index,
Object found,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainAtIndex . |
static ErrorMessageFactory |
ShouldContainExactly.shouldContainExactly(Object actual,
Object expected,
Object notFound,
Iterable<?> notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainExactly . |
static ErrorMessageFactory |
ShouldContainExactly.shouldContainExactly(Object actual,
Object expected,
Object notFound,
Object notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainExactly . |
static ErrorMessageFactory |
ShouldContainOnly.shouldContainOnly(Object actual,
Object expected,
Object notFound,
Iterable<?> notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainOnly . |
static ErrorMessageFactory |
ShouldContainOnly.shouldContainOnly(Object actual,
Object expected,
Object notFound,
Object notExpected,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainOnly . |
static ErrorMessageFactory |
ShouldContainCharSequenceOnlyOnce.shouldContainOnlyOnce(CharSequence actual,
CharSequence sequence,
int occurences,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldContainCharSequenceSequence.shouldContainSequence(CharSequence actual,
CharSequence[] strings,
int badOrderIndex,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldContainSequence.shouldContainSequence(Object actual,
Object sequence,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldContainsOnlyOnce.shouldContainsOnlyOnce(Object actual,
Object expected,
Set<?> notFound,
Set<?> notOnlyOnce,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldContainsOnlyOnce . |
static ErrorMessageFactory |
ShouldContainSubsequence.shouldContainSubsequence(Object actual,
Object subsequence,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldEndWith.shouldEndWith(Object actual,
Object expected,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldNotBeBetween.shouldNotBeBetween(Date actual,
Date start,
Date end,
boolean inclusiveStart,
boolean inclusiveEnd,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldNotBeBetween . |
static ErrorMessageFactory |
ShouldNotBeEqual.shouldNotBeEqual(Object actual,
Object other,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldNotBeIn.shouldNotBeIn(Object actual,
Object values,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldNotContainCharSequence.shouldNotContain(CharSequence actual,
CharSequence sequence,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldNotContain.shouldNotContain(Object actual,
Object expected,
Object found,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldNotContain . |
static ErrorMessageFactory |
ShouldNotContainAtIndex.shouldNotContainAtIndex(Object actual,
Object expected,
Index index,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldNotContainAtIndex . |
static ErrorMessageFactory |
ShouldNotHaveDuplicates.shouldNotHaveDuplicates(Object actual,
Object duplicates,
ComparisonStrategy comparisonStrategy)
Creates a new
. |
static ErrorMessageFactory |
ShouldStartWith.shouldStartWith(Object actual,
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 |
IterableElementComparisonStrategy<T> |
class |
StandardComparisonStrategy
Implements
ComparisonStrategy contract with a comparison strategy based on
Objects.areEqual(Object, Object) method, it is also based on Comparable.compareTo(Object) when Object
are Comparable method. |
Modifier and Type | Method and Description |
---|---|
ComparisonStrategy |
Iterables.getComparisonStrategy() |
ComparisonStrategy |
Objects.getComparisonStrategy() |
ComparisonStrategy |
Lists.getComparisonStrategy() |
Copyright © 2013-2015 AssertJ. All Rights Reserved.