Java 类org.assertj.core.api.OptionalAssert 实例源码

项目:test-as-you-think    文件:TestAsYouThink.java   
public static <$Value> OptionalAssert<$Value> resultOf(CheckedOptionalSupplier<$Value> whenStep) {
    return assertThat(result(whenStep));
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(Optional)}
 */
default <T> OptionalAssert<T> then(Optional<T> optional) {
    fluentBdd().verification.recordThen(this);
    return DELEGATE.assertThat(optional);
}
项目:fluent-bdd    文件:WithFluentAssertJ.java   
/**
 * Delegate call to {@link org.assertj.core.api.Assertions#assertThat(Optional)}
 */
default <T> OptionalAssert<T> and(Optional<T> optional) {
    fluentBdd().verification.recordThen(this);
    return DELEGATE.assertThat(optional);
}
项目:extended-mockito    文件:AssertJ.java   
/**
 * Delegate call to public static <VALUE> org.assertj.core.api.OptionalAssert<VALUE> org.assertj.core.api.Assertions.assertThat(java.util.Optional<VALUE>)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.Optional)}
 */
default <VALUE> OptionalAssert<VALUE> assertThat(Optional<VALUE> actual) {
    return Assertions.assertThat(actual);
}
项目:tdd-mixins-core    文件:AssertJ.java   
/**
 * Delegate call to public static <VALUE> org.assertj.core.api.OptionalAssert<VALUE> org.assertj.core.api.Assertions.assertThat(java.util.Optional<VALUE>)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.Optional)}
 */
default <VALUE> OptionalAssert<VALUE> assertThat(Optional<VALUE> actual) {
    return Assertions.assertThat(actual);
}
项目:interface-it    文件:AssertJ.java   
/**
 * Delegate call to public static <T> org.assertj.core.api.OptionalAssert<T> org.assertj.core.api.Assertions.assertThat(java.util.Optional<T>)
 * {@link org.assertj.core.api.Assertions#assertThat(java.util.Optional)}
 */
default <T> OptionalAssert<T> assertThat(Optional<T> actual) {
    return Assertions.assertThat(actual);
}