public class Assumptions extends Object
| Constructor and Description |
|---|
Assumptions() |
| Modifier and Type | Method and Description |
|---|---|
static AtomicBooleanAssert |
assumeThat(AtomicBoolean actual)
Creates assumption for
AtomicBoolean. |
static AtomicIntegerAssert |
assumeThat(AtomicInteger actual)
Creates assumption for
AtomicInteger. |
static AtomicIntegerArrayAssert |
assumeThat(AtomicIntegerArray actual)
Creates int[] assumption for
AtomicIntegerArray. |
static <OBJECT> AtomicIntegerFieldUpdaterAssert<OBJECT> |
assumeThat(AtomicIntegerFieldUpdater<OBJECT> actual)
Creates assumption for
AtomicIntegerFieldUpdater. |
static AtomicLongAssert |
assumeThat(AtomicLong actual)
Creates assumption for
AtomicLong. |
static AtomicLongArrayAssert |
assumeThat(AtomicLongArray actual)
Creates assumption for
AtomicLongArray. |
static <OBJECT> AtomicLongFieldUpdaterAssert<OBJECT> |
assumeThat(AtomicLongFieldUpdater<OBJECT> actual)
Creates assumption for
AtomicLongFieldUpdater. |
static <VALUE> AtomicMarkableReferenceAssert<VALUE> |
assumeThat(AtomicMarkableReference<VALUE> actual)
Creates assumption for
AtomicMarkableReference. |
static <VALUE> AtomicReferenceAssert<VALUE> |
assumeThat(AtomicReference<VALUE> actual)
Creates assumption for
AtomicReference. |
static <ELEMENT> AtomicReferenceArrayAssert<ELEMENT> |
assumeThat(AtomicReferenceArray<ELEMENT> actual)
Creates assumption for
AtomicReferenceArray. |
static <FIELD,OBJECT> |
assumeThat(AtomicReferenceFieldUpdater<OBJECT,FIELD> actual)
Creates assumption for
AtomicReferenceFieldUpdater. |
static <VALUE> AtomicStampedReferenceAssert<VALUE> |
assumeThat(AtomicStampedReference<VALUE> actual)
Creates assumption for
AtomicStampedReference. |
static AbstractBigDecimalAssert<?> |
assumeThat(BigDecimal actual)
Creates a new instance of
assumption. |
static AbstractBigIntegerAssert<?> |
assumeThat(BigInteger actual)
Creates a new instance of
assumption. |
static AbstractBooleanAssert<?> |
assumeThat(boolean actual)
Creates a new instance of
assumption. |
static AbstractBooleanAssert<?> |
assumeThat(Boolean actual)
Creates a new instance of
assumption. |
static AbstractBooleanArrayAssert<?> |
assumeThat(boolean[] actual)
Creates a new instance of
assumption. |
static AbstractByteAssert<?> |
assumeThat(byte actual)
Creates a new instance of
assumption. |
static AbstractByteAssert<?> |
assumeThat(Byte actual)
Creates a new instance of
assumption. |
static AbstractByteArrayAssert<?> |
assumeThat(byte[] actual)
Creates a new instance of
assumption. |
static AbstractCharacterAssert<?> |
assumeThat(char actual)
Creates a new instance of
assumption. |
static AbstractCharArrayAssert<?> |
assumeThat(char[] actual)
Creates a new instance of
assumption. |
static AbstractCharacterAssert<?> |
assumeThat(Character actual)
Creates a new instance of
assumption. |
static AbstractCharSequenceAssert<?,? extends CharSequence> |
assumeThat(CharSequence actual)
Creates a new instance of
assumption. |
static AbstractClassAssert<?> |
assumeThat(Class<?> actual)
Creates a new instance of
assumption. |
static AbstractDateAssert<?> |
assumeThat(Date actual)
Creates a new instance of
assumption. |
static AbstractDoubleAssert<?> |
assumeThat(double actual)
Creates a new instance of
assumption. |
static AbstractDoubleAssert<?> |
assumeThat(Double actual)
Creates a new instance of
assumption. |
static AbstractDoubleArrayAssert<?> |
assumeThat(double[] actual)
Creates a new instance of
assumption. |
static AbstractFileAssert<?> |
assumeThat(File actual)
Creates a new instance of
assumption. |
static AbstractFloatAssert<?> |
assumeThat(float actual)
Creates a new instance of
assumption. |
static AbstractFloatAssert<?> |
assumeThat(Float actual)
Creates a new instance of
assumption. |
static AbstractFloatArrayAssert<?> |
assumeThat(float[] actual)
Creates a new instance of
assumption. |
static <RESULT> AbstractFutureAssert<?,? extends Future<? extends RESULT>,RESULT> |
assumeThat(Future<RESULT> actual)
Create assertion for
Future assumption. |
static AbstractInputStreamAssert<?,? extends InputStream> |
assumeThat(InputStream actual)
Creates a new instance of
assumption. |
static AbstractIntegerAssert<?> |
assumeThat(int actual)
Creates a new instance of
assumption. |
static AbstractIntArrayAssert<?> |
assumeThat(int[] actual)
Creates a new instance of
assumption. |
static AbstractIntegerAssert<?> |
assumeThat(Integer actual)
Creates a new instance of
assumption. |
static <ELEMENT> FactoryBasedNavigableIterableAssert<IterableAssert<ELEMENT>,Iterable<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
assumeThat(Iterable<? extends ELEMENT> actual)
Creates a new instance of
assumption. |
static <ELEMENT> FactoryBasedNavigableIterableAssert<IterableAssert<ELEMENT>,Iterable<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
assumeThat(Iterator<? extends ELEMENT> actual)
Creates a new instance of
assumption. |
static <ELEMENT> FactoryBasedNavigableListAssert<ListAssert<ELEMENT>,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> |
assumeThat(List<? extends ELEMENT> actual)
Creates a new instance of
assumption. |
static AbstractLongAssert<?> |
assumeThat(long actual)
Creates a new instance of
assumption. |
static AbstractLongAssert<?> |
assumeThat(Long actual)
Creates a new instance of
assumption. |
static AbstractLongArrayAssert<?> |
assumeThat(long[] actual)
Creates a new instance of
assumption. |
static <K,V> AbstractMapAssert<?,?,K,V> |
assumeThat(Map<K,V> actual)
Creates a new instance of
assumption. |
static AbstractPathAssert<?> |
assumeThat(Path actual)
Creates a new instance of
PathAssert assumption. |
static AbstractShortAssert<?> |
assumeThat(short actual)
Creates a new instance of
assumption. |
static AbstractShortAssert<?> |
assumeThat(Short actual)
Creates a new instance of
assumption. |
static AbstractShortArrayAssert<?> |
assumeThat(short[] actual)
Creates a new instance of
assumption. |
static AbstractCharSequenceAssert<?,String> |
assumeThat(String actual)
Creates a new instance of
assumption. |
static <T> AbstractObjectAssert<?,T> |
assumeThat(T actual)
Creates a new instance of
assumption. |
static <T extends Comparable<? super T>> |
assumeThat(T actual)
Creates a new instance of
assumption. |
static <T> AbstractObjectArrayAssert<?,T> |
assumeThat(T[] actual)
Creates a new instance of
assumption. |
static AbstractThrowableAssert<?,? extends Throwable> |
assumeThat(Throwable actual)
Creates a new instance of
assumption. |
static AbstractUriAssert<?> |
assumeThat(URI actual)
Creates a new instance of
assumption. |
static AbstractUrlAssert<?> |
assumeThat(URL actual)
Creates a new instance of
assumption. |
static AbstractThrowableAssert<?,? extends Throwable> |
assumeThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Allows to capture and then assume on a
Throwable (done easier when used with Java 8 lambdas). |
public static <T> AbstractObjectAssert<?,T> assumeThat(T actual)
ObjectAssert assumption.T - the type of the actual value.actual - the actual value.public static AbstractCharSequenceAssert<?,String> assumeThat(String actual)
StringAssert assumption.actual - the actual value.public static AbstractBigDecimalAssert<?> assumeThat(BigDecimal actual)
BigDecimalAssert assumption.actual - the actual value.public static AbstractBigIntegerAssert<?> assumeThat(BigInteger actual)
BigIntegerAssert assumption.actual - the actual value.public static AbstractUriAssert<?> assumeThat(URI actual)
UriAssert assumption.actual - the actual value.public static AbstractUrlAssert<?> assumeThat(URL actual)
UrlAssert assumption.actual - the actual value.public static AbstractBooleanAssert<?> assumeThat(boolean actual)
BooleanAssert assumption.actual - the actual value.public static AbstractBooleanAssert<?> assumeThat(Boolean actual)
BooleanAssert assumption.actual - the actual value.public static AbstractBooleanArrayAssert<?> assumeThat(boolean[] actual)
BooleanArrayAssert assumption.actual - the actual value.public static AbstractByteAssert<?> assumeThat(byte actual)
ByteAssert assumption.actual - the actual value.public static AbstractByteAssert<?> assumeThat(Byte actual)
ByteAssert assumption.actual - the actual value.public static AbstractByteArrayAssert<?> assumeThat(byte[] actual)
ByteArrayAssert assumption.actual - the actual value.public static AbstractCharacterAssert<?> assumeThat(char actual)
CharacterAssert assumption.actual - the actual value.public static AbstractCharacterAssert<?> assumeThat(Character actual)
CharacterAssert assumption.actual - the actual value.public static AbstractCharArrayAssert<?> assumeThat(char[] actual)
CharArrayAssert assumption.actual - the actual value.public static AbstractCharSequenceAssert<?,? extends CharSequence> assumeThat(CharSequence actual)
CharSequenceAssert assumption.actual - the actual value.public static AbstractShortAssert<?> assumeThat(short actual)
ShortAssert assumption.actual - the actual value.public static AbstractShortAssert<?> assumeThat(Short actual)
ShortAssert assumption.actual - the actual value.public static AbstractShortArrayAssert<?> assumeThat(short[] actual)
ShortArrayAssert assumption.actual - the actual value.public static AbstractIntegerAssert<?> assumeThat(int actual)
IntegerAssert assumption.actual - the actual value.public static AbstractIntegerAssert<?> assumeThat(Integer actual)
IntegerAssert assumption.actual - the actual value.public static AbstractIntArrayAssert<?> assumeThat(int[] actual)
IntArrayAssert assumption.actual - the actual value.public static AbstractLongAssert<?> assumeThat(long actual)
LongAssert assumption.actual - the actual value.public static AbstractLongAssert<?> assumeThat(Long actual)
LongAssert assumption.actual - the actual value.public static AbstractLongArrayAssert<?> assumeThat(long[] actual)
LongArrayAssert assumption.actual - the actual value.public static AbstractFloatAssert<?> assumeThat(float actual)
FloatAssert assumption.actual - the actual value.public static AbstractFloatAssert<?> assumeThat(Float actual)
FloatAssert assumption.actual - the actual value.public static AbstractFloatArrayAssert<?> assumeThat(float[] actual)
FloatArrayAssert assumption.actual - the actual value.public static AbstractDoubleAssert<?> assumeThat(double actual)
DoubleAssert assumption.actual - the actual value.public static AbstractDoubleAssert<?> assumeThat(Double actual)
DoubleAssert assumption.actual - the actual value.public static AbstractDoubleArrayAssert<?> assumeThat(double[] actual)
DoubleArrayAssert assumption.actual - the actual value.public static AtomicBooleanAssert assumeThat(AtomicBoolean actual)
AtomicBoolean.actual - the actual value.public static AtomicIntegerAssert assumeThat(AtomicInteger actual)
AtomicInteger.actual - the actual value.public static AtomicIntegerArrayAssert assumeThat(AtomicIntegerArray actual)
AtomicIntegerArray.actual - the actual value.public static <OBJECT> AtomicIntegerFieldUpdaterAssert<OBJECT> assumeThat(AtomicIntegerFieldUpdater<OBJECT> actual)
AtomicIntegerFieldUpdater.OBJECT - the type of the object holding the updatable field.actual - the actual value.public static AtomicLongAssert assumeThat(AtomicLong actual)
AtomicLong.actual - the actual value.public static AtomicLongArrayAssert assumeThat(AtomicLongArray actual)
AtomicLongArray.actual - the actual value.public static <OBJECT> AtomicLongFieldUpdaterAssert<OBJECT> assumeThat(AtomicLongFieldUpdater<OBJECT> actual)
AtomicLongFieldUpdater.OBJECT - the type of the object holding the updatable field.actual - the actual value.public static <VALUE> AtomicReferenceAssert<VALUE> assumeThat(AtomicReference<VALUE> actual)
AtomicReference.VALUE - the type of the value contained in the AtomicReference.actual - the actual value.public static <ELEMENT> AtomicReferenceArrayAssert<ELEMENT> assumeThat(AtomicReferenceArray<ELEMENT> actual)
AtomicReferenceArray.ELEMENT - the type of the value contained in the AtomicReferenceArray.actual - the actual value.public static <FIELD,OBJECT> AtomicReferenceFieldUpdaterAssert<FIELD,OBJECT> assumeThat(AtomicReferenceFieldUpdater<OBJECT,FIELD> actual)
AtomicReferenceFieldUpdater.FIELD - the type of the field which gets updated by the AtomicReferenceFieldUpdater.OBJECT - the type of the object holding the updatable field.actual - the actual value.public static <VALUE> AtomicMarkableReferenceAssert<VALUE> assumeThat(AtomicMarkableReference<VALUE> actual)
AtomicMarkableReference.VALUE - the type of the value contained in the AtomicMarkableReference.actual - the actual value.public static <VALUE> AtomicStampedReferenceAssert<VALUE> assumeThat(AtomicStampedReference<VALUE> actual)
AtomicStampedReference.VALUE - the type of the value contained in the AtomicStampedReference.actual - the actual value.public static AbstractClassAssert<?> assumeThat(Class<?> actual)
ClassAssert assumption.actual - the actual value.public static AbstractDateAssert<?> assumeThat(Date actual)
DateAssert assumption.actual - the actual value.public static AbstractFileAssert<?> assumeThat(File actual)
FileAssert assumption.actual - the actual value.public static AbstractPathAssert<?> assumeThat(Path actual)
PathAssert assumption.actual - the path to testpublic static AbstractInputStreamAssert<?,? extends InputStream> assumeThat(InputStream actual)
InputStreamAssert assumption.actual - the actual value.public static <RESULT> AbstractFutureAssert<?,? extends Future<? extends RESULT>,RESULT> assumeThat(Future<RESULT> actual)
Future assumption.RESULT - the type of the value contained in the Future.actual - the actual value.public static <ELEMENT> FactoryBasedNavigableIterableAssert<IterableAssert<ELEMENT>,Iterable<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> assumeThat(Iterable<? extends ELEMENT> actual)
IterableAssert assumption.actual - the actual value.public static <ELEMENT> FactoryBasedNavigableIterableAssert<IterableAssert<ELEMENT>,Iterable<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> assumeThat(Iterator<? extends ELEMENT> actual)
IterableAssert assumption.actual - the actual value.public static <ELEMENT> FactoryBasedNavigableListAssert<ListAssert<ELEMENT>,List<? extends ELEMENT>,ELEMENT,ObjectAssert<ELEMENT>> assumeThat(List<? extends ELEMENT> actual)
ListAssert assumption.actual - the actual value.public static <T> AbstractObjectArrayAssert<?,T> assumeThat(T[] actual)
ObjectArrayAssert assumption.actual - the actual value.public static <K,V> AbstractMapAssert<?,?,K,V> assumeThat(Map<K,V> actual)
MapAssert assumption.K - the type of keys in the map.V - the type of values in the map.actual - the actual value.public static <T extends Comparable<? super T>> AbstractComparableAssert<?,T> assumeThat(T actual)
GenericComparableAssert assumption.actual - the actual value.public static AbstractThrowableAssert<?,? extends Throwable> assumeThat(Throwable actual)
ThrowableAssert assumption.actual - the actual value.public static AbstractThrowableAssert<?,? extends Throwable> assumeThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable)
Throwable (done easier when used with Java 8 lambdas).shouldRaiseThrowable - The ThrowableAssert.ThrowingCallable or lambda with the code that should raise the throwable.Copyright © 2013–2018 AssertJ. All rights reserved.