1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2016 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.taxeditor.molecular.io;
|
11
|
|
12
|
|
13
|
import static org.junit.Assert.assertEquals;
|
14
|
import static org.junit.Assert.assertFalse;
|
15
|
import static org.junit.Assert.assertTrue;
|
16
|
|
17
|
import org.junit.Test;
|
18
|
|
19
|
|
20
|
|
21
|
/**
|
22
|
* @author bstoe_01
|
23
|
* @date 29.04.2016
|
24
|
*
|
25
|
*/
|
26
|
public class SequenceIDIteratorTest {
|
27
|
//TODO Why can't this class access SequenceIDIterator from here? (Workaround: Copy to molecular projekt to run test.)
|
28
|
|
29
|
@Test
|
30
|
public void test_next() {
|
31
|
SequenceIDIterator iterator = new SequenceIDIterator(3);
|
32
|
|
33
|
for (int i = 0; i < 3; i++) {
|
34
|
assertTrue(iterator.hasNext());
|
35
|
assertEquals("seqSingleRead" + i, iterator.next());
|
36
|
}
|
37
|
assertTrue(iterator.hasNext());
|
38
|
assertEquals("seqConsensus", iterator.next());
|
39
|
assertFalse(iterator.hasNext());
|
40
|
}
|
41
|
}
|