use of java.util.stream.DoubleStream in project assertj-core by joel-costigliola.
the class Assertions_assertThat_with_DoubleStream_Test method isInstanceOf_should_check_the_original_stream_without_consuming_it.
@Test
void isInstanceOf_should_check_the_original_stream_without_consuming_it() {
DoubleStream stream = mock(DoubleStream.class);
assertThat(stream).isInstanceOf(DoubleStream.class);
verifyNoInteractions(stream);
}
use of java.util.stream.DoubleStream in project assertj-core by joel-costigliola.
the class Assertions_assertThat_with_DoubleStream_Test method stream_can_be_asserted_twice.
@Test
void stream_can_be_asserted_twice() {
DoubleStream names = DoubleStream.of(823952.8, 1947230585.9);
assertThat(names).containsExactly(823952.8, 1947230585.9).containsExactly(823952.8, 1947230585.9);
}
use of java.util.stream.DoubleStream in project assertj-core by joel-costigliola.
the class Assertions_assertThat_with_DoubleStream_Test method isOfAnyClassIn_should_check_the_original_stream_without_consuming_it.
@Test
void isOfAnyClassIn_should_check_the_original_stream_without_consuming_it() {
DoubleStream stream = mock(DoubleStream.class);
assertThat(stream).isOfAnyClassIn(Double.class, stream.getClass());
}
use of java.util.stream.DoubleStream in project assertj-core by joel-costigliola.
the class Assertions_assertThat_with_DoubleStream_Test method should_not_consume_stream_when_asserting_non_null.
@Test
void should_not_consume_stream_when_asserting_non_null() {
DoubleStream stream = mock(DoubleStream.class);
assertThat(stream).isNotNull();
verifyNoInteractions(stream);
}
Aggregations