Deprecated
For Android compatible assertions use the latest assertj 2.x version which is based on Java 7 only.
Android-compatible BDD-style assertions duplicated from BDDAssertions.
BDDAssertions
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static AtomicBooleanAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public static AtomicIntegerAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public static AtomicIntegerArrayAssert | Returns: the created assertion object.the actual value. actual)Create int[] assertion for |
| public static < the type of the object holding the updatable field. OBJECT> AtomicIntegerFieldUpdaterAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public static AtomicLongAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public static AtomicLongArrayAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public static < the type of the object holding the updatable field. OBJECT> AtomicLongFieldUpdaterAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public static < the type of the value contained in the VALUE> AtomicReferenceAssertAtomicReference. | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public static < the type of the value contained in the ELEMENT> AtomicReferenceArrayAssertAtomicReferenceArray. | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public static < the type of the field which gets updated by the FIELD, AtomicReferenceFieldUpdater.the type of the object holding the updatable field. OBJECT> AtomicReferenceFieldUpdaterAssert | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public static < the type of the value contained in the VALUE> AtomicMarkableReferenceAssertAtomicMarkableReference. | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public static < the type of the value contained in the VALUE> AtomicStampedReferenceAssertAtomicStampedReference. | Returns: the created assertion object.the actual value. actual)Create assertion for |
| public static AbstractBigDecimalAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractBigIntegerAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractBooleanAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractBooleanAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractBooleanArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static Boolean2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractByteAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractByteAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractByteArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static Byte2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractCharacterAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractCharArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static Char2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractCharacterAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractClassAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static < the actual elements type T> AbstractCollectionAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static < the actual type T extends Comparable | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static < the actual elements type T> AbstractIterableAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static < the actual elements type T> AbstractIteratorAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static < The actual type ACTUAL extends IterableThe actual elements type ELEMENT, The actual elements AbstractAssert type ELEMENT_ASSERT extends AbstractAssert | Returns: the created assertion object.the actual value. actual, AssertFactory<ELEMENT, ELEMENT_ASSERT> the factory used to create the elements assert instance. assertFactory)
Deprecated
This was added to help creating type-specific assertions for the elements of an
Creates a new instance of Iterable instance.
allowing to navigate to any Iterable element
in order to perform assertions on it.
|
| public static < The actual type ACTUAL extends IterableThe actual elements type ELEMENT, The actual elements AbstractAssert type ELEMENT_ASSERT extends AbstractAssert | Returns: the created assertion object.the actual value. actual, Class<ELEMENT_ASSERT> the class used to create the elements assert instance. assertClass)
Deprecated
This was added to help creating type-specific assertions for the elements of an
Creates a new instance of Iterable instance.
allowing to navigate to any Iterable element
in order to perform assertions on it.
|
| public static < The actual type ACTUAL extends ListThe actual elements type ELEMENT, The actual elements AbstractAssert type ELEMENT_ASSERT extends AbstractAssert | Returns: the created assertion object.the actual value. actual, AssertFactory<ELEMENT, ELEMENT_ASSERT> the factory used to create the elements assert instance. assertFactory)
Deprecated
This was added to help creating type-specific assertions for the elements of an
Creates a new instance of List instance.
allowing to navigate to any List element
in order to perform assertions on it.
|
| public static < The actual elements type ELEMENT, The actual type ACTUAL extends ListThe actual elements AbstractAssert type ELEMENT_ASSERT extends AbstractAssert | Returns: the created assertion object.the actual value. actual, Class<ELEMENT_ASSERT> the class used to create the elements assert instance. assertClass)
Deprecated
This was added to help creating type-specific assertions for the elements of an
Creates a new instance of List instance.
allowing to navigate to any List element
in order to perform assertions on it.
|
| public static AbstractDoubleAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractDoubleAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractDoubleArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static Double2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractFileAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static < the type of the value contained in the RESULT> AbstractFutureAssertjava.. | Returns: the created assertion objectthe future to test actual)Creates a new instance of |
| public static AbstractInputStreamAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractFloatAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractFloatAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractFloatArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractIntegerAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractIntArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static Int2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static Float2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractIntegerAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static < the actual elements type T> AbstractListAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractLongAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractLongAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractLongArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static Long2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static < the actual type T> AbstractObjectAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static < the actual elements type T> AbstractObjectArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static < the actual elements type T> Object2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static < the type of keys in the map. K, the type of values in the map. V> MapAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractShortAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractShortAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractShortArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static Short2DArrayAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractCharSequenceAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractCharSequenceAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractCharSequenceAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractStringAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractDateAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static < the type of the actual throwable. T extends Throwable> AbstractThrowableAssert | Returns: the created assertion Throwable.the actual value. actual)Creates a new instance of |
| public static AbstractUriAssert | |
| public static AbstractUrlAssert | |
| public static < the generic type of the user-defined assert. T extends AssertDelegateTarget> T | |
| public static < the AssertProvider wrapped type. T> T | Returns: the associatedAssert of the given componentthe component that creates its own assert component)Delegates the creation of the |
| public static AbstractCharSequenceAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public AbstractThrowableAssert | Returns: The captured exception ornull if none was raised by the callable.The shouldRaiseOrNotThrowableThrowingCallable or lambda with the code that should raise the throwable.Allows to capture and then assert on a |
| public static < the type of the actual value. T> AbstractObjectAssert | Returns: the created assertion object.the actual value. actual)Creates a new instance of |
| public static AbstractThrowableAssert | Returns: The captured exception ornull if none was raised by the callable.The shouldRaiseThrowableThrowingCallable or lambda with the code that should raise the throwable.Allows to capture and then assert on a |
| public static AbstractThrowableAssert | Returns: the createdThrowableAssert.The shouldRaiseThrowable,ThrowingCallable or lambda with the code that should raise the throwable.the new description to set. description, Object... optional parameter if description is a format String. args)Allows to capture and then assert on a |