From 4d0a59a0023f2b4fca144a089a3f75acb4ebd62b Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Tue, 2 Jul 2019 18:32:37 -0400 Subject: Move tests to new package --- .../bculkin2442/data/CircularIteratorTest.java | 49 ---------------------- 1 file changed, 49 deletions(-) delete mode 100644 src/test/java/io/github/bculkin2442/data/CircularIteratorTest.java (limited to 'src/test/java/io/github/bculkin2442/data/CircularIteratorTest.java') diff --git a/src/test/java/io/github/bculkin2442/data/CircularIteratorTest.java b/src/test/java/io/github/bculkin2442/data/CircularIteratorTest.java deleted file mode 100644 index 80fbb54..0000000 --- a/src/test/java/io/github/bculkin2442/data/CircularIteratorTest.java +++ /dev/null @@ -1,49 +0,0 @@ -package io.github.bculkin2442.data; - -import java.util.Arrays; -import java.util.List; - -import org.junit.Test; - -import bjc.data.CircularIterator; - -import static io.github.bculkin2442.TestUtils.*; -/** - * Test for circular iterators., - * - * @author bjculkin - * - */ -public class CircularIteratorTest { - /** - * Test regular repetition of the entire iterator. - */ - @Test - public void testRegular() { - List lst = Arrays.asList("a", "b", "c"); - - CircularIterator itr = new CircularIterator<>(lst); - - // Check we get initial values correctly, and have more remaining - assertIteratorEquals(true, itr, "a", "b", "c"); - - // Check we repeat correctly, and can still repeat - assertIteratorEquals(true, itr, "a", "b", "c"); - } - - /** - * Test that the last element repeats correctly. - */ - @Test - public void testRepLast() { - List lst = Arrays.asList("a", "b", "c"); - - CircularIterator itr = new CircularIterator<>(lst, false); - - // Check we get initial values correctly, and have more remaining - assertIteratorEquals(true, itr, "a", "b", "c"); - - // Check we repeat correctly, and can still repeat - assertIteratorEquals(true, itr, "c", "c", "c"); - } -} -- cgit v1.2.3