@@ -0,0 +1,1958 @@
+package algorithms.CardGame;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class ArrayQueueTest %7B%0A    private ArrayQueue%3CString%3E queue;%0A%0A    public ArrayQueueTest() %7B%0A        queue = new ArrayQueue%3CString%3E(3);%0A    %7D%0A%0A    @Test%0A    public void testEnqueue() throws Exception %7B%0A        assertEquals(0, queue.size());%0A%0A        queue.enqueue(%221%22);%0A        assertEquals(%221%22, queue.front());%0A        assertEquals(1, queue.size());%0A%0A        queue.enqueue(%222%22);%0A        assertEquals(%221%22, queue.front());%0A        assertEquals(2, queue.size());%0A    %7D%0A%0A    @Test%0A    public void testDequeue() throws Exception %7B%0A        queue.enqueue(%221%22);%0A        assertEquals(1, queue.size());%0A%0A        queue.dequeue();%0A        assertTrue(queue.isEmpty());%0A%0A        queue.enqueue(%221%22);%0A        assertEquals(1, queue.size());%0A%0A        queue.enqueue(%222%22);%0A        assertEquals(2, queue.size());%0A%0A        queue.dequeue();%0A        assertEquals(1, queue.size());%0A%0A        queue.dequeue();%0A        assertTrue(queue.isEmpty());%0A    %7D%0A%0A    @Test%0A    public void testSize() throws Exception %7B%0A        assertEquals(0, queue.size());%0A%0A        queue.enqueue(%221%22);%0A        assertEquals(1, queue.size());%0A%0A        queue.enqueue(%222%22);%0A        assertEquals(2, queue.size());%0A    %7D%0A%0A    @Test%0A    public void testIsEmpty() throws Exception %7B%0A        queue.enqueue(%221%22);%0A        assertFalse(queue.isEmpty());%0A%0A        queue.dequeue();%0A        assertTrue(queue.isEmpty());%0A    %7D%0A%0A    @Test%0A    public void front() throws Exception %7B%0A        assertEquals(queue.front(), null);%0A%0A        queue.enqueue(%221%22);%0A        assertEquals(%221%22, queue.front());%0A%0A        queue.enqueue(%222%22);%0A        assertEquals(%221%22, queue.front());%0A    %7D%0A%0A    @Test%0A    public void testCircularBehaviour() throws Exception %7B%0A        queue.enqueue(%221%22);%0A        queue.enqueue(%222%22);%0A        queue.enqueue(%223%22);%0A%0A        queue.dequeue();%0A        queue.enqueue(%224%22);%0A%0A        assertEquals(%222%22, queue.front());%0A    %7D%0A%7D

Test class for the queue implementation