/** * Unit test with three chunks two of which have two elements each and one * of which is empty. */ public void test_threeChunks_2_0_2() { final String[][] expected = new String[][] {// new String[]{"A","a"},// new String[]{},// new String[]{"B","b"},// }; final IChunkedIterator<String> src = new MyArrayExpander<String>( expected); final CloseableChunkedIteratorWrapperConverter<String> actual = new CloseableChunkedIteratorWrapperConverter<String>( src); assertSameIterator(expected, actual); }
/** * Unit test with three chunks two of which have one element each and * one of which is empty. */ public void test_threeChunks_1_0_1() { final String[][] expected = new String[][] {// new String[]{"A"},// new String[]{},// new String[]{"B"},// }; final IChunkedIterator<String> src = new MyArrayExpander<String>( expected); final CloseableChunkedIteratorWrapperConverter<String> actual = new CloseableChunkedIteratorWrapperConverter<String>( src); assertSameIterator(expected, actual); }
/** * Unit test with three chunks two of which have one element each and * one of which is empty. */ public void test_threeChunks_1_0_1() { final String[][] expected = new String[][] {// new String[]{"A"},// new String[]{},// new String[]{"B"},// }; final IChunkedIterator<String> src = new MyArrayExpander<String>( expected); final CloseableChunkedIteratorWrapperConverter<String> actual = new CloseableChunkedIteratorWrapperConverter<String>( src); assertSameIterator(expected, actual); }
/** * Unit test with three chunks two of which have two elements each and one * of which is empty. */ public void test_threeChunks_2_0_2() { final String[][] expected = new String[][] {// new String[]{"A","a"},// new String[]{},// new String[]{"B","b"},// }; final IChunkedIterator<String> src = new MyArrayExpander<String>( expected); final CloseableChunkedIteratorWrapperConverter<String> actual = new CloseableChunkedIteratorWrapperConverter<String>( src); assertSameIterator(expected, actual); }
/** * Unit test with three chunks, none of which is empty. */ public void test_threeChunks_1_2_1() { final String[][] expected = new String[][] {// new String[]{"A"},// new String[]{"C","c"},// new String[]{"B"},// }; final IChunkedIterator<String> src = new MyArrayExpander<String>( expected); final CloseableChunkedIteratorWrapperConverter<String> actual = new CloseableChunkedIteratorWrapperConverter<String>( src); assertSameIterator(expected, actual); }
/** * Unit test with two chunks with one element each. */ public void test_twoChunks_oneElementEach() { final String[][] expected = new String[][] {// new String[]{"A"},// new String[]{"B"},// }; final IChunkedIterator<String> src = new MyArrayExpander<String>( expected); final CloseableChunkedIteratorWrapperConverter<String> actual = new CloseableChunkedIteratorWrapperConverter<String>( src); assertSameIterator(expected, actual); }
/** * Unit test with three chunks, none of which is empty. */ public void test_threeChunks_1_2_1() { final String[][] expected = new String[][] {// new String[]{"A"},// new String[]{"C","c"},// new String[]{"B"},// }; final IChunkedIterator<String> src = new MyArrayExpander<String>( expected); final CloseableChunkedIteratorWrapperConverter<String> actual = new CloseableChunkedIteratorWrapperConverter<String>( src); assertSameIterator(expected, actual); }
/** * Unit test with a single chunk with one element. */ public void test_oneElement() { final String[][] expected = new String[][] {// new String[]{"A"}// }; final IChunkedIterator<String> src = new MyArrayExpander<String>( expected); final CloseableChunkedIteratorWrapperConverter<String> actual = new CloseableChunkedIteratorWrapperConverter<String>( src); assertSameIterator(expected, actual); }
/** * Unit test with a single empty chunk. */ public void test_singleEmptyChunk2() { final String[][] expected = new String[][] {// new String[]{}// }; final IChunkedIterator<String> src = new MyArrayExpander<String>( expected); final CloseableChunkedIteratorWrapperConverter<String> actual = new CloseableChunkedIteratorWrapperConverter<String>( src); assertSameIterator(expected, actual); }
/** * Unit test with a single empty chunk. */ public void test_singleEmptyChunk2() { final String[][] expected = new String[][] {// new String[]{}// }; final IChunkedIterator<String> src = new MyArrayExpander<String>( expected); final CloseableChunkedIteratorWrapperConverter<String> actual = new CloseableChunkedIteratorWrapperConverter<String>( src); assertSameIterator(expected, actual); }
/** * Unit test with a single chunk with one element. */ public void test_oneElement() { final String[][] expected = new String[][] {// new String[]{"A"}// }; final IChunkedIterator<String> src = new MyArrayExpander<String>( expected); final CloseableChunkedIteratorWrapperConverter<String> actual = new CloseableChunkedIteratorWrapperConverter<String>( src); assertSameIterator(expected, actual); }
/** * Unit test with two chunks with one element each. */ public void test_twoChunks_oneElementEach() { final String[][] expected = new String[][] {// new String[]{"A"},// new String[]{"B"},// }; final IChunkedIterator<String> src = new MyArrayExpander<String>( expected); final CloseableChunkedIteratorWrapperConverter<String> actual = new CloseableChunkedIteratorWrapperConverter<String>( src); assertSameIterator(expected, actual); }