public class BDDAssertions extends Assertions
The difference with Assertions class is that entry point methods are named then
instead of
assertThat
.
For example:
@Test public void bdd_assertions_examples() { //given List<BasketBallPlayer> bulls = new ArrayList<BasketBallPlayer>(); //when bulls.add(rose); bulls.add(noah); then(bulls).contains(rose, noah).doesNotContain(james); }
Modifier | Constructor and Description |
---|---|
protected |
BDDAssertions()
Creates a new
BDDAssertions . |
Modifier and Type | Method and Description |
---|---|
static BigDecimalAssert |
then(BigDecimal actual)
Creates a new instance of
. |
static BooleanAssert |
then(boolean actual)
Creates a new instance of
. |
static BooleanAssert |
then(Boolean actual)
Creates a new instance of
. |
static BooleanArrayAssert |
then(boolean[] actual)
Creates a new instance of
. |
static ByteAssert |
then(byte actual)
Creates a new instance of
. |
static ByteAssert |
then(Byte actual)
Creates a new instance of
. |
static ByteArrayAssert |
then(byte[] actual)
Creates a new instance of
. |
static CharacterAssert |
then(char actual)
Creates a new instance of
. |
static CharArrayAssert |
then(char[] actual)
Creates a new instance of
. |
static CharacterAssert |
then(Character actual)
Creates a new instance of
. |
static CharSequenceAssert |
then(CharSequence actual)
Creates a new instance of
. |
static ClassAssert |
then(Class<?> actual)
Creates a new instance of
|
static DateAssert |
then(Date actual)
Creates a new instance of
. |
static DoubleAssert |
then(double actual)
Creates a new instance of
. |
static DoubleAssert |
then(Double actual)
Creates a new instance of
. |
static DoubleArrayAssert |
then(double[] actual)
Creates a new instance of
. |
static FileAssert |
then(File actual)
Creates a new instance of
. |
static FloatAssert |
then(float actual)
Creates a new instance of
. |
static FloatAssert |
then(Float actual)
Creates a new instance of
. |
static FloatArrayAssert |
then(float[] actual)
Creates a new instance of
. |
static InputStreamAssert |
then(InputStream actual)
Creates a new instance of
. |
static IntegerAssert |
then(int actual)
Creates a new instance of
. |
static IntArrayAssert |
then(int[] actual)
Creates a new instance of
. |
static IntegerAssert |
then(Integer actual)
Creates a new instance of
. |
static <T> IterableAssert<T> |
then(Iterable<T> actual)
Creates a new instance of
. |
static <T> IterableAssert<T> |
then(Iterator<T> actual)
Creates a new instance of
. |
static <T> ListAssert<T> |
then(List<T> actual)
Creates a new instance of
. |
static LongAssert |
then(long actual)
Creates a new instance of
. |
static LongAssert |
then(Long actual)
Creates a new instance of
. |
static LongArrayAssert |
then(long[] actual)
Creates a new instance of
. |
static <K,V> MapAssert<K,V> |
then(Map<K,V> actual)
Creates a new instance of
. |
static ShortAssert |
then(short actual)
Creates a new instance of
. |
static ShortAssert |
then(Short actual)
Creates a new instance of
. |
static ShortArrayAssert |
then(short[] actual)
Creates a new instance of
. |
static StringAssert |
then(String actual)
Creates a new instance of
. |
static <T> ObjectAssert<T> |
then(T actual)
Creates a new instance of
. |
static <T> ObjectArrayAssert<T> |
then(T[] actual)
Creates a new instance of
. |
static ThrowableAssert |
then(Throwable actual)
Creates a new instance of
. |
allOf, allOf, anyOf, anyOf, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, atIndex, contentOf, contentOf, contentOf, doesNotHave, entry, extractProperty, extractProperty, fail, fail, failBecauseExceptionWasNotThrown, filter, filter, not, offset, offset, registerCustomDateFormat, registerCustomDateFormat, setAllowExtractingPrivateFields, setRemoveAssertJRelatedElementsFromStackTrace, tuple, useDateFormat, useDateFormat, useDefaultDateFormats, useDefaultDateFormatsOnly, useIsoDateFormat, useIsoDateTimeFormat, useIsoDateTimeWithMsFormat, within, within, within
protected BDDAssertions()
BDDAssertions
.public static BigDecimalAssert then(BigDecimal actual)
BigDecimalAssert
.actual
- the actual value.public static BooleanAssert then(boolean actual)
BooleanAssert
.actual
- the actual value.public static BooleanAssert then(Boolean actual)
BooleanAssert
.actual
- the actual value.public static BooleanArrayAssert then(boolean[] actual)
BooleanArrayAssert
.actual
- the actual value.public static ByteAssert then(byte actual)
ByteAssert
.actual
- the actual value.public static ByteAssert then(Byte actual)
ByteAssert
.actual
- the actual value.public static ByteArrayAssert then(byte[] actual)
ByteArrayAssert
.actual
- the actual value.public static CharacterAssert then(char actual)
CharacterAssert
.actual
- the actual value.public static CharArrayAssert then(char[] actual)
CharArrayAssert
.actual
- the actual value.public static CharacterAssert then(Character actual)
CharacterAssert
.actual
- the actual value.public static ClassAssert then(Class<?> actual)
ClassAssert
actual
- the actual value.public static <T> IterableAssert<T> then(Iterable<T> actual)
IterableAssert
.actual
- the actual value.public static <T> IterableAssert<T> then(Iterator<T> actual)
actual
- the actual value.public static DoubleAssert then(double actual)
DoubleAssert
.actual
- the actual value.public static DoubleAssert then(Double actual)
DoubleAssert
.actual
- the actual value.public static DoubleArrayAssert then(double[] actual)
DoubleArrayAssert
.actual
- the actual value.public static FileAssert then(File actual)
FileAssert
.actual
- the actual value.public static InputStreamAssert then(InputStream actual)
InputStreamAssert
.actual
- the actual value.public static FloatAssert then(float actual)
FloatAssert
.actual
- the actual value.public static FloatAssert then(Float actual)
FloatAssert
.actual
- the actual value.public static FloatArrayAssert then(float[] actual)
FloatArrayAssert
.actual
- the actual value.public static IntegerAssert then(int actual)
IntegerAssert
.actual
- the actual value.public static IntArrayAssert then(int[] actual)
IntArrayAssert
.actual
- the actual value.public static IntegerAssert then(Integer actual)
IntegerAssert
.actual
- the actual value.public static <T> ListAssert<T> then(List<T> actual)
ListAssert
.actual
- the actual value.public static LongAssert then(long actual)
LongAssert
.actual
- the actual value.public static LongAssert then(Long actual)
LongAssert
.actual
- the actual value.public static LongArrayAssert then(long[] actual)
LongArrayAssert
.actual
- the actual value.public static <T> ObjectAssert<T> then(T actual)
ObjectAssert
.actual
- the actual value.public static <T> ObjectArrayAssert<T> then(T[] actual)
ObjectArrayAssert
.actual
- the actual value.public static <K,V> MapAssert<K,V> then(Map<K,V> actual)
MapAssert
.actual
- the actual value.public static ShortAssert then(short actual)
ShortAssert
.actual
- the actual value.public static ShortAssert then(Short actual)
ShortAssert
.actual
- the actual value.public static ShortArrayAssert then(short[] actual)
ShortArrayAssert
.actual
- the actual value.public static CharSequenceAssert then(CharSequence actual)
CharSequenceAssert
.actual
- the actual value.public static StringAssert then(String actual)
StringAssert
.actual
- the actual value.public static DateAssert then(Date actual)
DateAssert
.actual
- the actual value.public static ThrowableAssert then(Throwable actual)
ThrowableAssert
.actual
- the actual value.Copyright © 2013-2014 AssertJ. All Rights Reserved.