/** * Create assertion for {@link LongPredicate}. * * @param actual the actual value. * @return the created assertion object. * * @since 3.5.0 */ @CheckReturnValue public static LongPredicateAssert assertThat(LongPredicate actual) { return AssertionsForInterfaceTypes.assertThat(actual); }
/** * Creates a new instance of <code>{@link BooleanArrayAssert}</code>. * * @param actual the actual value. * @return the created assertion object. */ @CheckReturnValue public static AbstractBooleanArrayAssert<?> assertThat(boolean[] actual) { return AssertionsForClassTypes.assertThat(actual); }
/** * Creates a new instance of <code>{@link CharArrayAssert}</code>. * * @param actual the actual value. * @return the created assertion object. */ @CheckReturnValue public static AbstractCharArrayAssert<?> assertThat(char[] actual) { return AssertionsForClassTypes.assertThat(actual); }
/** * Creates a new instance of <code>{@link ClassAssert}</code> * * @param actual the actual value. * @return the created assertion object. */ @CheckReturnValue public static ClassAssert assertThat(Class<?> actual) { return AssertionsForClassTypes.assertThat(actual); }
/** * Creates a new instance of <code>{@link FloatAssert}</code>. * * @param actual the actual value. * @return the created assertion object. */ @CheckReturnValue public static AbstractFloatAssert<?> assertThat(Float actual) { return AssertionsForClassTypes.assertThat(actual); }
/** * Creates a new instance of <code>{@link ObjectArrayAssert}</code>. * * @param <T> the actual's elements type. * @param actual the actual value. * @return the created assertion object. */ @CheckReturnValue public static <T> ObjectArrayAssert<T> assertThat(T[] actual) { return AssertionsForClassTypes.assertThat(actual); }
/** * Create assertion for {@link AtomicLongFieldUpdater}. * * @param actual the actual value. * @param <OBJECT> the type of the object holding the updatable field. * @return the created assertion object. * @since 2.7.0 / 3.7.0 */ @CheckReturnValue public static <OBJECT> AtomicLongFieldUpdaterAssert<OBJECT> assertThat(AtomicLongFieldUpdater<OBJECT> actual) { return new AtomicLongFieldUpdaterAssert<>(actual); }
/** * Create assertion for {@link AtomicReferenceArray}. * * @param actual the actual value. * @param <ELEMENT> the type of the value contained in the {@link AtomicReferenceArray}. * @return the created assertion object. * @since 2.7.0 / 3.7.0 */ @CheckReturnValue public static <ELEMENT> AtomicReferenceArrayAssert<ELEMENT> assertThat(AtomicReferenceArray<ELEMENT> actual) { return new AtomicReferenceArrayAssert<>(actual); }
/** * Creates a new instance of <code>{@link ThrowableAssert}</code>. * * @param actual the actual value. * @return the created {@link ThrowableAssert}. */ @CheckReturnValue public static AbstractThrowableAssert<?, ? extends Throwable> assertThat(Throwable actual) { return AssertionsForClassTypes.assertThat(actual); }
/** * Alias for {@link #assertThatExceptionOfType(Class)} for {@link NullPointerException}. * * @return the created {@link ThrowableTypeAssert}. * * @since 3.7.0 */ @CheckReturnValue public static ThrowableTypeAssert<NullPointerException> assertThatNullPointerException() { return assertThatExceptionOfType(NullPointerException.class); }
/** * Creates a new instance of <code>{@link CharSequenceAssert}</code> from a {@link StringBuilder}. * * @param actual the actual value. * @return the created assertion object. * @since 3.11.0 */ @CheckReturnValue public static AbstractCharSequenceAssert<?, ? extends CharSequence> assertThat(StringBuilder actual) { return AssertionsForClassTypes.assertThat(actual); } /**
/** * Creates a new instance of <code>{@link StringAssert}from a {@link String}</code>. * * @param actual the actual value. * @return the created assertion object. */ @CheckReturnValue public static AbstractStringAssert<?> assertThat(String actual) { return AssertionsForClassTypes.assertThat(actual); }
@Override @CheckReturnValue public SELF usingComparator(Comparator<? super Integer> customComparator) { return usingComparator(customComparator, null); }
@Override @CheckReturnValue public SELF overridingErrorMessage(String newErrorMessage, Object... args) { return super.overridingErrorMessage(newErrorMessage, args); }
@Override @CheckReturnValue public SELF withFailMessage(String newErrorMessage, Object... args) { return super.withFailMessage(newErrorMessage, args); }
/** {@inheritDoc} */ @Override @CheckReturnValue public SELF as(Description description) { return describedAs(description); }
@Override @CheckReturnValue public SELF as(Description description) { return super.as(description); }
@Override @CheckReturnValue public SELF overridingErrorMessage(String newErrorMessage, Object... args) { return super.overridingErrorMessage(newErrorMessage, args); }
/** * Create assertion for {@link java.util.Optional}. * * @param actual the actual value. * @param <VALUE> the type of the value contained in the {@link java.util.Optional}. * * @return the created assertion object. */ @CheckReturnValue public <VALUE> OptionalAssert<VALUE> then(Optional<VALUE> actual) { return proxy(OptionalAssert.class, Optional.class, actual); }
/** * Create assertion for {@link java.util.OptionalLong}. * * @param actual the actual value. * * @return the created assertion object. */ @CheckReturnValue public OptionalLongAssert then(OptionalLong actual) { return proxy(OptionalLongAssert.class, OptionalLong.class, actual); }