Package org.assertj.core.api
Class Assumptions
java.lang.Object
org.assertj.core.api.Assumptions
- Direct Known Subclasses:
BDDAssumptions
Entry point for assumption methods for different types, which allow to skip test execution on failed assumptions.
- Since:
- 2.9.0 / 3.9.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final net.bytebuddy.implementation.Implementationprivate static final net.bytebuddy.ByteBuddyThis NamingStrategy takes the original class's name and adds a suffix to distinguish it.private static final net.bytebuddy.TypeCache<net.bytebuddy.TypeCache.SimpleKey> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <ASSERTION>
ASSERTIONasAssumption(Class<ASSERTION> assertionType, Class<?>[] constructorTypes, Object... constructorParams) private static <ASSERTION,ACTUAL>
ASSERTIONasAssumption(Class<ASSERTION> assertionType, Class<ACTUAL> actualType, Object actual) private static AbstractAssert<?, ?> asAssumption(AbstractAssert<?, ?> assertion) private static AbstractAssert<?, ?> asBigDecimalScaleAssumption(AbstractAssert<?, ?> assertion) private static AbstractAssert<?, ?> asFileSizeAssumption(AbstractAssert<?, ?> assertion) private static AbstractAssert<?, ?> asIterableSizeAssumption(AbstractAssert<?, ?> assertion) private static AbstractAssert<?, ?> asMapSizeAssumption(AbstractAssert<?, ?> assertion) private static AbstractAssert<?, ?> asRecursiveComparisonAssumption(AbstractAssert<?, ?> assertion) static AbstractBooleanAssert<?> assumeThat(boolean actual) Creates a new instance ofassumption.BooleanAssertstatic AbstractBooleanArrayAssert<?> assumeThat(boolean[] actual) Creates a new instance ofassumption.BooleanArrayAssertstatic Boolean2DArrayAssertassumeThat(boolean[][] actual) Creates a new instance ofassumption.Boolean2DArrayAssertstatic AbstractByteAssert<?> assumeThat(byte actual) Creates a new instance ofassumption.ByteAssertstatic AbstractByteArrayAssert<?> assumeThat(byte[] actual) Creates a new instance ofassumption.ByteArrayAssertstatic Byte2DArrayAssertassumeThat(byte[][] actual) Creates a new instance ofassumption.Byte2DArrayAssertstatic AbstractCharacterAssert<?> assumeThat(char actual) Creates a new instance ofassumption.CharacterAssertstatic AbstractCharArrayAssert<?> assumeThat(char[] actual) Creates a new instance ofassumption.CharArrayAssertstatic Char2DArrayAssertassumeThat(char[][] actual) Creates a new instance ofassumption.Char2DArrayAssertstatic AbstractDoubleAssert<?> assumeThat(double actual) Creates a new instance ofassumption.DoubleAssertstatic AbstractDoubleArrayAssert<?> assumeThat(double[] actual) Creates a new instance ofassumption.DoubleArrayAssertstatic Double2DArrayAssertassumeThat(double[][] actual) Creates a new instance ofassumption.Double2DArrayAssertstatic AbstractFloatAssert<?> assumeThat(float actual) Creates a new instance ofassumption.FloatAssertstatic AbstractFloatArrayAssert<?> assumeThat(float[] actual) Creates a new instance ofassumption.FloatArrayAssertstatic Float2DArrayAssertassumeThat(float[][] actual) Creates a new instance ofassumption.Float2DArrayAssertstatic AbstractIntegerAssert<?> assumeThat(int actual) Creates a new instance ofassumption.IntegerAssertstatic AbstractIntArrayAssert<?> assumeThat(int[] actual) Creates a new instance ofassumption.IntArrayAssertstatic Int2DArrayAssertassumeThat(int[][] actual) Creates a new instance ofassumption.Int2DArrayAssertstatic AbstractLongAssert<?> assumeThat(long actual) Creates a new instance ofassumption.LongAssertstatic AbstractLongArrayAssert<?> assumeThat(long[] actual) Creates a new instance ofassumption.LongArrayAssertstatic Long2DArrayAssertassumeThat(long[][] actual) Creates a new instance ofassumption.Long2DArrayAssertstatic AbstractShortAssert<?> assumeThat(short actual) Creates a new instance ofassumption.ShortAssertstatic AbstractShortArrayAssert<?> assumeThat(short[] actual) Creates a new instance ofassumption.ShortArrayAssertstatic Short2DArrayAssertassumeThat(short[][] actual) Creates a new instance ofassumption.Short2DArrayAssertstatic AbstractFileAssert<?> assumeThat(File actual) Creates a new instance ofassumption.FileAssertstatic AbstractInputStreamAssert<?, ? extends InputStream> assumeThat(InputStream actual) Creates a new instance ofassumption.InputStreamAssertstatic AbstractBooleanAssert<?> assumeThat(Boolean actual) Creates a new instance ofassumption.BooleanAssertstatic AbstractByteAssert<?> assumeThat(Byte actual) Creates a new instance ofassumption.ByteAssertstatic AbstractCharacterAssert<?> assumeThat(Character actual) Creates a new instance ofassumption.CharacterAssertstatic AbstractCharSequenceAssert<?, ? extends CharSequence> assumeThat(CharSequence actual) Creates a new instance ofassumption.CharSequenceAssertstatic ClassAssertassumeThat(Class<?> actual) Creates a new instance ofassumption.ClassAssertstatic AbstractDoubleAssert<?> assumeThat(Double actual) Creates a new instance ofassumption.DoubleAssertstatic AbstractFloatAssert<?> assumeThat(Float actual) Creates a new instance ofassumption.FloatAssertstatic AbstractIntegerAssert<?> assumeThat(Integer actual) Creates a new instance ofassumption.IntegerAssertstatic <ELEMENT> IterableAssert<ELEMENT> assumeThat(Iterable<? extends ELEMENT> actual) Creates a new instance ofassumption.IterableAssertstatic AbstractLongAssert<?> assumeThat(Long actual) Creates a new instance ofassumption.LongAssertstatic AbstractShortAssert<?> assumeThat(Short actual) Creates a new instance ofassumption.ShortAssertstatic AbstractStringAssert<?> assumeThat(String actual) Creates a new instance ofassumption.StringAssertstatic AbstractCharSequenceAssert<?, ? extends CharSequence> assumeThat(StringBuffer actual) Creates a new instance ofassumption from aCharSequenceAssertStringBuffer.static AbstractCharSequenceAssert<?, ? extends CharSequence> assumeThat(StringBuilder actual) Creates a new instance ofassumption from aCharSequenceAssertStringBuilder.static AbstractBigDecimalAssert<?> assumeThat(BigDecimal actual) Creates a new instance ofassumption.BigDecimalAssertstatic AbstractBigIntegerAssert<?> assumeThat(BigInteger actual) Creates a new instance ofassumption.BigIntegerAssertstatic AbstractUriAssert<?> assumeThat(URI actual) Creates a new instance ofassumption.UriAssertstatic AbstractUrlAssert<?> assumeThat(URL actual) Creates a new instance ofassumption.UrlAssertstatic AbstractPathAssert<?> assumeThat(Path actual) Creates a new instance ofPathAssertassumption.static AbstractDurationAssert<?> assumeThat(Duration actual) Creates a new instance ofDurationAssertassumption.static AbstractInstantAssert<?> assumeThat(Instant actual) Creates a new instance ofInstantAssertassumption.static AbstractLocalDateAssert<?> assumeThat(LocalDate actual) Creates a new instance ofLocalDateAssertassumption.static AbstractLocalDateTimeAssert<?> assumeThat(LocalDateTime actual) Creates a new instance ofLocalDateTimeAssertassumption.static AbstractLocalTimeAssert<?> assumeThat(LocalTime actual) Creates a new instance ofLocalTimeAssertassumption.static AbstractOffsetDateTimeAssert<?> assumeThat(OffsetDateTime actual) Creates a new instance ofOffsetDateTimeAssertassumption.static AbstractOffsetTimeAssert<?> assumeThat(OffsetTime actual) Creates a new instance ofOffsetTimeAssertassumption.static AbstractPeriodAssert<?> assumeThat(Period actual) Creates a new instance ofPeriodAssertassumption.static AbstractZonedDateTimeAssert<?> assumeThat(ZonedDateTime actual) Creates a new instance ofZonedDateTimeAssertassumption.static <E> AbstractCollectionAssert<?, Collection<? extends E>, E, ObjectAssert<E>> assumeThat(Collection<? extends E> actual) Creates a new instance ofassumption.CollectionAssertstatic AtomicBooleanAssertassumeThat(AtomicBoolean actual) Create assumption forAtomicBoolean.static AtomicIntegerAssertassumeThat(AtomicInteger actual) Create assumption forAtomicInteger.static AtomicIntegerArrayAssertassumeThat(AtomicIntegerArray actual) Creates int[] assumption forAtomicIntegerArray.static <OBJECT> AtomicIntegerFieldUpdaterAssert<OBJECT> assumeThat(AtomicIntegerFieldUpdater<OBJECT> actual) Create assumption forAtomicIntegerFieldUpdater.static AtomicLongAssertassumeThat(AtomicLong actual) Create assumption forAtomicLong.static AtomicLongArrayAssertassumeThat(AtomicLongArray actual) Create assumption forAtomicLongArray.static <OBJECT> AtomicLongFieldUpdaterAssert<OBJECT> assumeThat(AtomicLongFieldUpdater<OBJECT> actual) Create assumption forAtomicLongFieldUpdater.static <VALUE> AtomicMarkableReferenceAssert<VALUE> assumeThat(AtomicMarkableReference<VALUE> actual) Create assumption forAtomicMarkableReference.static <VALUE> AtomicReferenceAssert<VALUE> assumeThat(AtomicReference<VALUE> actual) Create assumption forAtomicReference.static <ELEMENT> AtomicReferenceArrayAssert<ELEMENT> assumeThat(AtomicReferenceArray<ELEMENT> actual) Create assumption forAtomicReferenceArray.static <FIELD,OBJECT>
AtomicReferenceFieldUpdaterAssert<FIELD, OBJECT> assumeThat(AtomicReferenceFieldUpdater<OBJECT, FIELD> actual) Create assumption forAtomicReferenceFieldUpdater.static <VALUE> AtomicStampedReferenceAssert<VALUE> assumeThat(AtomicStampedReference<VALUE> actual) Create assumption forAtomicStampedReference.static LongAdderAssertassumeThat(LongAdder actual) Create assumption forLongAdder.static <RESULT> CompletableFutureAssert<RESULT> assumeThat(CompletableFuture<RESULT> actual) Creates a new instance ofCompletableFutureAssertassumption.static <RESULT> CompletableFutureAssert<RESULT> assumeThat(CompletionStage<RESULT> actual) Creates a new instance ofCompletableFutureAssertassumption for aCompletionStageby converting it to aCompletableFutureand returning aCompletableFutureAssert.static <RESULT> AbstractFutureAssert<?, ? extends Future<? extends RESULT>, RESULT> assumeThat(Future<RESULT> future) Create assertion forFutureAssertassumption.static AbstractDateAssert<?> assumeThat(Date actual) Creates a new instance ofassumption.DateAssertstatic DoublePredicateAssertassumeThat(DoublePredicate actual) Creates a new instance ofDoublePredicateAssertassumption.static IntPredicateAssertassumeThat(IntPredicate actual) Creates a new instance ofIntPredicateAssertassumption.static LongPredicateAssertassumeThat(LongPredicate actual) Creates a new instance ofLongPredicateAssertassumption.static <T> PredicateAssert<T> assumeThat(Predicate<T> actual) Creates a new instance ofPredicateAssertassumption.static <ELEMENT> IteratorAssert<ELEMENT> assumeThat(Iterator<? extends ELEMENT> actual) Creates a new instance ofassumption.IteratorAssertstatic <ELEMENT> FactoryBasedNavigableListAssert<ListAssert<ELEMENT>, List<? extends ELEMENT>, ELEMENT, ObjectAssert<ELEMENT>> assumeThat(List<? extends ELEMENT> actual) Creates a new instance ofassumption.ListAssertstatic <K,V> MapAssert <K, V> assumeThat(Map<K, V> actual) Creates a new instance ofassumption.MapAssertstatic <VALUE> OptionalAssert<VALUE> assumeThat(Optional<VALUE> actual) Creates a new instance ofOptionalAssertassumption.static OptionalDoubleAssertassumeThat(OptionalDouble actual) Creates a new instance ofOptionalDoubleAssertassumption.static OptionalIntAssertassumeThat(OptionalInt actual) Creates a new instance ofOptionalIntAssertassumption.static OptionalLongAssertassumeThat(OptionalLong actual) Creates a new instance ofOptionalLongAssertassumption.static MatcherAssertassumeThat(Matcher actual) Creates a new instance ofMatcherAssertassumption.static <ELEMENT> AbstractSpliteratorAssert<?, ELEMENT> assumeThat(Spliterator<ELEMENT> actual) Creates a new instance ofassumption from the givenSpliteratorAssertSpliterator.static AbstractListAssert<?, List<? extends Double>, Double, ObjectAssert<Double>> assumeThat(DoubleStream actual) Creates a new instance ofassumption from the givenListAssertDoubleStream.static AbstractListAssert<?, List<? extends Integer>, Integer, ObjectAssert<Integer>> assumeThat(IntStream actual) Creates a new instance ofassumption from the givenListAssertIntStream.static AbstractListAssert<?, List<? extends Long>, Long, ObjectAssert<Long>> assumeThat(LongStream actual) Creates a new instance ofassumption from the givenListAssert