package com.annimon.stream.streamtests;
import com.annimon.stream.Stream;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public final class IteratorTest {
@Test
@SuppressWarnings("deprecation")
public void testGetIterator() {
assertThat(Stream.of(1).getIterator(), is(not(nullValue())));
}
@Test
public void testIterator() {
assertThat(Stream.of(1).iterator(), is(not(nullValue())));
}
}