use of java.util.stream.IntStream in project assertj-core by joel-costigliola.
the class Assertions_assertThat_with_IntStream_Test method should_not_consume_stream_when_asserting_non_null.
@Test
void should_not_consume_stream_when_asserting_non_null() {
IntStream stream = mock(IntStream.class);
assertThat(stream).isNotNull();
verifyNoInteractions(stream);
}
use of java.util.stream.IntStream in project assertj-core by joel-costigliola.
the class Assertions_assertThat_with_IntStream_Test method isInstanceOf_should_check_the_original_stream_without_consuming_it.
@Test
void isInstanceOf_should_check_the_original_stream_without_consuming_it() {
IntStream stream = mock(IntStream.class);
assertThat(stream).isInstanceOf(IntStream.class);
verifyNoInteractions(stream);
}
use of java.util.stream.IntStream in project assertj-core by joel-costigliola.
the class Assertions_assertThat_with_IntStream_Test method isInstanceOfAny_should_check_the_original_stream_without_consuming_it.
@Test
void isInstanceOfAny_should_check_the_original_stream_without_consuming_it() {
IntStream stream = mock(IntStream.class);
assertThat(stream).isInstanceOfAny(IntStream.class, String.class);
verifyNoInteractions(stream);
}
use of java.util.stream.IntStream in project assertj-core by joel-costigliola.
the class Assertions_assertThat_with_IntStream_Test method isSameAs_should_check_the_original_stream_without_consuming_it.
@Test
void isSameAs_should_check_the_original_stream_without_consuming_it() {
IntStream stream = mock(IntStream.class);
assertThat(stream).isSameAs(stream);
verifyNoInteractions(stream);
}
use of java.util.stream.IntStream in project dharma2018 by impredator.
the class CreateIntRange method main.
public static void main(String[] args) {
IntStream oneToFive = IntStream.range(1, 6);
// IntStream oneToFive = IntStream.rangeClosed(1, 5);
oneToFive.forEach(System.out::println);
}
Aggregations