Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.junit.*;
- import org.junit.runner.*;
- public class Solution {
- @Test
- public void testSimpleIter() {
- DojoIterator<Integer> iterator = new DojoIterator<>(Arrays.asList(1, 2, 3));
- Assert.assertTrue(iterator.hasNext());
- }
- @Test
- public void testNullIter() {
- DojoIterator<Integer> iterator = new DojoIterator<>(null);
- Assert.assertFalse(iterator.hasNext());
- }
- public static void main(String[] args) {
- JUnitCore.main("Solution");
- }
- }
Add Comment
Please, Sign In to add comment