All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.benschroeder.assertj.WithBDDAssertions Maven / Gradle / Ivy

The newest version!
package eu.benschroeder.assertj;

import org.assertj.core.api.AbstractAssert;
import org.assertj.core.api.AbstractBigDecimalAssert;
import org.assertj.core.api.AbstractBigIntegerAssert;
import org.assertj.core.api.AbstractBooleanArrayAssert;
import org.assertj.core.api.AbstractBooleanAssert;
import org.assertj.core.api.AbstractByteArrayAssert;
import org.assertj.core.api.AbstractByteAssert;
import org.assertj.core.api.AbstractCharArrayAssert;
import org.assertj.core.api.AbstractCharSequenceAssert;
import org.assertj.core.api.AbstractCharacterAssert;
import org.assertj.core.api.AbstractCollectionAssert;
import org.assertj.core.api.AbstractComparableAssert;
import org.assertj.core.api.AbstractDateAssert;
import org.assertj.core.api.AbstractDoubleArrayAssert;
import org.assertj.core.api.AbstractDoubleAssert;
import org.assertj.core.api.AbstractDurationAssert;
import org.assertj.core.api.AbstractFileAssert;
import org.assertj.core.api.AbstractFloatArrayAssert;
import org.assertj.core.api.AbstractFloatAssert;
import org.assertj.core.api.AbstractInputStreamAssert;
import org.assertj.core.api.AbstractInstantAssert;
import org.assertj.core.api.AbstractIntArrayAssert;
import org.assertj.core.api.AbstractIntegerAssert;
import org.assertj.core.api.AbstractLocalDateAssert;
import org.assertj.core.api.AbstractLocalDateTimeAssert;
import org.assertj.core.api.AbstractLocalTimeAssert;
import org.assertj.core.api.AbstractLongArrayAssert;
import org.assertj.core.api.AbstractLongAssert;
import org.assertj.core.api.AbstractOffsetDateTimeAssert;
import org.assertj.core.api.AbstractOffsetTimeAssert;
import org.assertj.core.api.AbstractPathAssert;
import org.assertj.core.api.AbstractPeriodAssert;
import org.assertj.core.api.AbstractShortArrayAssert;
import org.assertj.core.api.AbstractShortAssert;
import org.assertj.core.api.AbstractStringAssert;
import org.assertj.core.api.AbstractThrowableAssert;
import org.assertj.core.api.AbstractUniversalComparableAssert;
import org.assertj.core.api.AbstractUriAssert;
import org.assertj.core.api.AbstractUrlAssert;
import org.assertj.core.api.AbstractYearMonthAssert;
import org.assertj.core.api.AbstractZonedDateTimeAssert;
import org.assertj.core.api.AssertDelegateTarget;
import org.assertj.core.api.AssertFactory;
import org.assertj.core.api.AssertProvider;
import org.assertj.core.api.AtomicBooleanAssert;
import org.assertj.core.api.AtomicIntegerArrayAssert;
import org.assertj.core.api.AtomicIntegerAssert;
import org.assertj.core.api.AtomicIntegerFieldUpdaterAssert;
import org.assertj.core.api.AtomicLongArrayAssert;
import org.assertj.core.api.AtomicLongAssert;
import org.assertj.core.api.AtomicLongFieldUpdaterAssert;
import org.assertj.core.api.AtomicMarkableReferenceAssert;
import org.assertj.core.api.AtomicReferenceArrayAssert;
import org.assertj.core.api.AtomicReferenceAssert;
import org.assertj.core.api.AtomicReferenceFieldUpdaterAssert;
import org.assertj.core.api.AtomicStampedReferenceAssert;
import org.assertj.core.api.BDDAssertions;
import org.assertj.core.api.Boolean2DArrayAssert;
import org.assertj.core.api.Byte2DArrayAssert;
import org.assertj.core.api.Char2DArrayAssert;
import org.assertj.core.api.ClassAssert;
import org.assertj.core.api.ClassBasedNavigableIterableAssert;
import org.assertj.core.api.ClassBasedNavigableListAssert;
import org.assertj.core.api.CompletableFutureAssert;
import org.assertj.core.api.Double2DArrayAssert;
import org.assertj.core.api.DoublePredicateAssert;
import org.assertj.core.api.FactoryBasedNavigableIterableAssert;
import org.assertj.core.api.FactoryBasedNavigableListAssert;
import org.assertj.core.api.Float2DArrayAssert;
import org.assertj.core.api.FutureAssert;
import org.assertj.core.api.Int2DArrayAssert;
import org.assertj.core.api.IntPredicateAssert;
import org.assertj.core.api.IterableAssert;
import org.assertj.core.api.IteratorAssert;
import org.assertj.core.api.ListAssert;
import org.assertj.core.api.Long2DArrayAssert;
import org.assertj.core.api.LongAdderAssert;
import org.assertj.core.api.LongPredicateAssert;
import org.assertj.core.api.MapAssert;
import org.assertj.core.api.MatcherAssert;
import org.assertj.core.api.NotThrownAssert;
import org.assertj.core.api.Object2DArrayAssert;
import org.assertj.core.api.ObjectArrayAssert;
import org.assertj.core.api.ObjectAssert;
import org.assertj.core.api.OptionalAssert;
import org.assertj.core.api.OptionalDoubleAssert;
import org.assertj.core.api.OptionalIntAssert;
import org.assertj.core.api.OptionalLongAssert;
import org.assertj.core.api.PredicateAssert;
import org.assertj.core.api.Short2DArrayAssert;
import org.assertj.core.api.SpliteratorAssert;
import org.assertj.core.api.TemporalAssert;
import org.assertj.core.api.ThrowableAssert;
import org.assertj.core.api.ThrowableTypeAssert;
import org.assertj.core.util.CanIgnoreReturnValue;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.net.URI;
import java.net.URL;
import java.nio.file.Path;
import java.time.Duration;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.OffsetDateTime;
import java.time.OffsetTime;
import java.time.Period;
import java.time.YearMonth;
import java.time.ZonedDateTime;
import java.time.temporal.Temporal;
import java.util.Collection;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.OptionalDouble;
import java.util.OptionalInt;
import java.util.OptionalLong;
import java.util.Spliterator;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.Future;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicIntegerArray;
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.AtomicLongArray;
import java.util.concurrent.atomic.AtomicLongFieldUpdater;
import java.util.concurrent.atomic.AtomicMarkableReference;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.atomic.AtomicReferenceArray;
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
import java.util.concurrent.atomic.AtomicStampedReference;
import java.util.concurrent.atomic.LongAdder;
import java.util.function.Consumer;
import java.util.function.DoublePredicate;
import java.util.function.IntPredicate;
import java.util.function.LongPredicate;
import java.util.function.Predicate;
import java.util.regex.Matcher;
import java.util.stream.DoubleStream;
import java.util.stream.IntStream;
import java.util.stream.LongStream;
import java.util.stream.Stream;

/**
 * AssertJ {@link BDDAssertions} as an interface to use in test classes.
 * 

* Inspired by https://blog.javabien.net/2014/04/23/what-if-assertj-used-java-8/ * * @author Benjamin Schröder */ public interface WithBDDAssertions { /** * @see BDDAssertions#then(Predicate) */ default PredicateAssert then(final Predicate actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#thenPredicate(Predicate) */ default PredicateAssert thenPredicate(final Predicate actual) { return BDDAssertions.thenPredicate(actual); } /** * @see BDDAssertions#then(IntPredicate) */ default IntPredicateAssert then(final IntPredicate actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(LongPredicate) */ default LongPredicateAssert then(final LongPredicate actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(DoublePredicate) */ default DoublePredicateAssert then(final DoublePredicate actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Optional) */ default OptionalAssert then(final Optional optional) { return BDDAssertions.then(optional); } /** * @see BDDAssertions#then(OptionalInt) */ default OptionalIntAssert then(final OptionalInt optional) { return BDDAssertions.then(optional); } /** * @see BDDAssertions#then(OptionalLong) */ default OptionalLongAssert then(final OptionalLong optional) { return BDDAssertions.then(optional); } /** * @see BDDAssertions#then(Matcher) */ default MatcherAssert then(final Matcher actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(OptionalDouble) */ default OptionalDoubleAssert then(final OptionalDouble optional) { return BDDAssertions.then(optional); } /** * @see BDDAssertions#then(BigDecimal) */ default AbstractBigDecimalAssert then(final BigDecimal actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(BigInteger) */ default AbstractBigIntegerAssert then(final BigInteger actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(boolean) */ default AbstractBooleanAssert then(final boolean actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Boolean) */ default AbstractBooleanAssert then(final Boolean actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(boolean[]) */ default AbstractBooleanArrayAssert then(final boolean[] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(boolean[][]) */ default Boolean2DArrayAssert then(final boolean[][] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(byte) */ default AbstractByteAssert then(final byte actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Byte) */ default AbstractByteAssert then(final Byte actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(byte[]) */ default AbstractByteArrayAssert then(final byte[] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(byte[][]) */ default Byte2DArrayAssert then(final byte[][] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(char) */ default AbstractCharacterAssert then(final char actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(char[]) */ default AbstractCharArrayAssert then(final char[] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(char[][]) */ default Char2DArrayAssert then(final char[][] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Character) */ default AbstractCharacterAssert then(final Character actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Class) */ default ClassAssert then(final Class actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(T) */ default > AbstractComparableAssert then(final T actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#thenComparable(Comparable) */ default AbstractUniversalComparableAssert thenComparable(final Comparable actual) { return BDDAssertions.thenComparable(actual); } /** * @see BDDAssertions#then(Iterable) */ default IterableAssert then(final Iterable actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#thenIterable(Iterable) */ default IterableAssert thenIterable(final Iterable actual) { return BDDAssertions.thenIterable(actual); } /** * @see BDDAssertions#then(Iterator) */ default IteratorAssert then(final Iterator actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#thenIterator(Iterator) */ default IteratorAssert thenIterator(final Iterator actual) { return BDDAssertions.thenIterator(actual); } /** * @see BDDAssertions#then(Iterable, AssertFactory) */ default , ELEMENT, ELEMENT_ASSERT extends AbstractAssert> FactoryBasedNavigableIterableAssert then(final Iterable actual, final AssertFactory assertFactory) { return BDDAssertions.then(actual, assertFactory); } /** * @see BDDAssertions#then(ACTUAL, Class) */ default , ELEMENT, ELEMENT_ASSERT extends AbstractAssert> ClassBasedNavigableIterableAssert then(final ACTUAL actual, final Class assertClass) { return BDDAssertions.then(actual, assertClass); } /** * @see BDDAssertions#then(List, AssertFactory) */ default , ELEMENT, ELEMENT_ASSERT extends AbstractAssert> FactoryBasedNavigableListAssert then(final List actual, final AssertFactory assertFactory) { return BDDAssertions.then(actual, assertFactory); } /** * @see BDDAssertions#then(List, Class) */ default , ELEMENT_ASSERT extends AbstractAssert> ClassBasedNavigableListAssert then(final List actual, final Class assertClass) { return BDDAssertions.then(actual, assertClass); } /** * @see BDDAssertions#then(double) */ default AbstractDoubleAssert then(final double actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Double) */ default AbstractDoubleAssert then(final Double actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(double[]) */ default AbstractDoubleArrayAssert then(final double[] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(double[][]) */ default Double2DArrayAssert then(final double[][] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(File) */ default AbstractFileAssert then(final File actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Path) */ default AbstractPathAssert then(final Path actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#thenPath(Path) */ default AbstractPathAssert thenPath(final Path actual) { return BDDAssertions.thenPath(actual); } /** * @see BDDAssertions#then(Future) */ default FutureAssert then(final Future actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(InputStream) */ default AbstractInputStreamAssert then(final InputStream actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(float) */ default AbstractFloatAssert then(final float actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Float) */ default AbstractFloatAssert then(final Float actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(float[]) */ default AbstractFloatArrayAssert then(final float[] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(float[][]) */ default Float2DArrayAssert then(final float[][] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(int) */ default AbstractIntegerAssert then(final int actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(int[]) */ default AbstractIntArrayAssert then(final int[] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(int[][]) */ default Int2DArrayAssert then(final int[][] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Integer) */ default AbstractIntegerAssert then(final Integer actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Collection) */ default AbstractCollectionAssert, E, ObjectAssert> then(final Collection actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#thenCollection(Collection) */ default AbstractCollectionAssert, E, ObjectAssert> thenCollection(final Collection actual) { return BDDAssertions.thenCollection(actual); } /** * @see BDDAssertions#then(List) */ default ListAssert then(final List actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#thenList(List) */ default ListAssert thenList(final List actual) { return BDDAssertions.thenList(actual); } /** * @see BDDAssertions#then(long) */ default AbstractLongAssert then(final long actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Long) */ default AbstractLongAssert then(final Long actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(long[]) */ default AbstractLongArrayAssert then(final long[] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(long[][]) */ default Long2DArrayAssert then(final long[][] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(T) */ default ObjectAssert then(final T actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(T[]) */ default ObjectArrayAssert then(final T[] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(T[][]) */ default Object2DArrayAssert then(final T[][] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Map) */ default MapAssert then(final Map actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(short) */ default AbstractShortAssert then(final short actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Short) */ default AbstractShortAssert then(final Short actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(short[]) */ default AbstractShortArrayAssert then(final short[] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(short[][]) */ default Short2DArrayAssert then(final short[][] actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(CharSequence) */ default AbstractCharSequenceAssert then(final CharSequence actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#thenCharSequence(CharSequence) */ default AbstractCharSequenceAssert thenCharSequence(final CharSequence actual) { return BDDAssertions.thenCharSequence(actual); } /** * @see BDDAssertions#then(StringBuilder) */ default AbstractCharSequenceAssert then(final StringBuilder actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(StringBuffer) */ default AbstractCharSequenceAssert then(final StringBuffer actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(String) */ default AbstractStringAssert then(final String actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Date) */ default AbstractDateAssert then(final Date actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(AtomicBoolean) */ default AtomicBooleanAssert then(final AtomicBoolean actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(AtomicInteger) */ default AtomicIntegerAssert then(final AtomicInteger actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(AtomicIntegerArray) */ default AtomicIntegerArrayAssert then(final AtomicIntegerArray actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(AtomicIntegerFieldUpdater) */ default AtomicIntegerFieldUpdaterAssert then(final AtomicIntegerFieldUpdater actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(LongAdder) */ default LongAdderAssert then(final LongAdder actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(AtomicLong) */ default AtomicLongAssert then(final AtomicLong actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(AtomicLongArray) */ default AtomicLongArrayAssert then(final AtomicLongArray actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(AtomicLongFieldUpdater) */ default AtomicLongFieldUpdaterAssert then(final AtomicLongFieldUpdater actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(AtomicReference) */ default AtomicReferenceAssert then(final AtomicReference actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(AtomicReferenceArray) */ default AtomicReferenceArrayAssert then(final AtomicReferenceArray actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(AtomicReferenceFieldUpdater) */ default AtomicReferenceFieldUpdaterAssert then(final AtomicReferenceFieldUpdater actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(AtomicMarkableReference) */ default AtomicMarkableReferenceAssert then(final AtomicMarkableReference actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(AtomicStampedReference) */ default AtomicStampedReferenceAssert then(final AtomicStampedReference actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Throwable) */ default AbstractThrowableAssert then(final Throwable actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#thenThrownBy(ThrowableAssert.ThrowingCallable) */ @CanIgnoreReturnValue default AbstractThrowableAssert thenThrownBy(final ThrowableAssert.ThrowingCallable shouldRaiseThrowable) { return BDDAssertions.thenThrownBy(shouldRaiseThrowable); } /** * @see BDDAssertions#thenThrownBy(ThrowableAssert.ThrowingCallable, String, Object...) */ @CanIgnoreReturnValue default AbstractThrowableAssert thenThrownBy(final ThrowableAssert.ThrowingCallable shouldRaiseThrowable, final String description, final Object... args) { return BDDAssertions.thenThrownBy(shouldRaiseThrowable, description, args); } /** * @see BDDAssertions#thenCode(ThrowableAssert.ThrowingCallable) */ default AbstractThrowableAssert thenCode(final ThrowableAssert.ThrowingCallable shouldRaiseOrNotThrowable) { return BDDAssertions.thenCode(shouldRaiseOrNotThrowable); } /** * @see BDDAssertions#thenObject(T) */ default ObjectAssert thenObject(final T actual) { return BDDAssertions.thenObject(actual); } /** * @see BDDAssertions#thenWith(Object, Consumer...) */ default ObjectAssert thenWith(final T actual, final Consumer... requirements) { return BDDAssertions.thenWith(actual, requirements); } /** * @see BDDAssertions#thenTemporal(Temporal) */ default TemporalAssert thenTemporal(Temporal actual) { return BDDAssertions.thenTemporal(actual); } /** * @see BDDAssertions#then(LocalDate) */ default AbstractLocalDateAssert then(final LocalDate actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(YearMonth) */ default AbstractYearMonthAssert then(final YearMonth actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(LocalDateTime) */ default AbstractLocalDateTimeAssert then(final LocalDateTime actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(ZonedDateTime) */ default AbstractZonedDateTimeAssert then(final ZonedDateTime actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(LocalTime) */ default AbstractLocalTimeAssert then(final LocalTime actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(OffsetTime) */ default AbstractOffsetTimeAssert then(final OffsetTime actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Instant) */ default AbstractInstantAssert then(final Instant actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Duration) */ default AbstractDurationAssert then(final Duration actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Period) */ default AbstractPeriodAssert then(final Period actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(URI) */ default AbstractUriAssert then(final URI actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(URL) */ default AbstractUrlAssert then(final URL actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(OffsetDateTime) */ default AbstractOffsetDateTimeAssert then(final OffsetDateTime actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(CompletableFuture) */ default CompletableFutureAssert then(final CompletableFuture future) { return BDDAssertions.then(future); } /** * @see BDDAssertions#then(CompletionStage) */ default CompletableFutureAssert then(final CompletionStage actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(T) */ default T then(final T assertion) { return BDDAssertions.then(assertion); } /** * @see BDDAssertions#then(AssertProvider) */ default T then(final AssertProvider component) { return component.assertThat(); } /** * @see BDDAssertions#then(Stream) */ default ListAssert then(final Stream actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#thenStream(Stream) */ default ListAssert thenStream(final Stream actual) { return BDDAssertions.thenStream(actual); } /** * @see BDDAssertions#then(DoubleStream) */ default ListAssert then(final DoubleStream actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(LongStream) */ default ListAssert then(final LongStream actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(IntStream) */ default ListAssert then(final IntStream actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#then(Spliterator) */ default SpliteratorAssert then(final Spliterator actual) { return BDDAssertions.then(actual); } /** * @see BDDAssertions#thenExceptionOfType(Class) */ default ThrowableTypeAssert thenExceptionOfType(final Class exceptionType) { return BDDAssertions.thenExceptionOfType(exceptionType); } /** * @see BDDAssertions#thenNoException() */ default NotThrownAssert thenNoException() { return BDDAssertions.thenNoException(); } /** * @see BDDAssertions#thenNullPointerException() */ default ThrowableTypeAssert thenNullPointerException() { return BDDAssertions.thenNullPointerException(); } /** * @see BDDAssertions#thenIllegalArgumentException() */ default ThrowableTypeAssert thenIllegalArgumentException() { return BDDAssertions.thenIllegalArgumentException(); } /** * @see BDDAssertions#thenIOException() */ default ThrowableTypeAssert thenIOException() { return BDDAssertions.thenIOException(); } /** * @see BDDAssertions#thenIllegalStateException() */ default ThrowableTypeAssert thenIllegalStateException() { return BDDAssertions.thenIllegalStateException(); } /** * @see BDDAssertions#thenException() */ default ThrowableTypeAssert thenException() { return BDDAssertions.thenException(); } /** * @see BDDAssertions#thenIndexOutOfBoundsException() */ default ThrowableTypeAssert thenIndexOutOfBoundsException() { return BDDAssertions.thenIndexOutOfBoundsException(); } /** * @see BDDAssertions#thenReflectiveOperationException() */ default ThrowableTypeAssert thenReflectiveOperationException() { return BDDAssertions.thenReflectiveOperationException(); } /** * @see BDDAssertions#thenRuntimeException() */ default ThrowableTypeAssert thenRuntimeException() { return BDDAssertions.thenRuntimeException(); } }