import junit.framework.*; import thequeue.*; public class MyArrayQueueUnitTest extends TestCase { public MyArrayQueueUnitTest(String name) { super(name); } public void testInsert() { MyArrayQueue maq = new MyArrayQueue(); maq.enqueue("First"); maq.enqueue("second"); maq.enqueue("third"); maq.enqueue("fourth"); maq.enqueue("fifth"); maq.enqueue("sixth"); maq.enqueue("seventh"); maq.enqueue("eighth"); maq.enqueue("nineth"); } public void testRemove() { MyArrayQueue maq = new MyArrayQueue(); for (int i = 1; i <= 9; i++) { MyArrayQueue.enqueue(toString(i)); } for (int i = 1; i <= 9; i++) { maq.dequeue(); } } public static Test suite() { return new TestSuite(LinkedListUnitTest.class); } }