package com.matao;

/**
 * Created by matao on 2018-12-07.
 */
public class Q09_QueueWith2StacksTest {
}

@@ -17,89 +17,832 @@
 o;%0A%0A
-/**%0A * Created by matao on 2018-12-07.%0A */%0Apublic class Q09_QueueWith2StacksTest %7B
+import com.matao.common.EmptyQueueException;%0Aimport org.junit.jupiter.api.Assertions;%0Aimport org.junit.jupiter.api.BeforeEach;%0Aimport org.junit.jupiter.api.Test;%0A%0A/**%0A * Created by matao on 2018-12-07.%0A */%0Apublic class Q09_QueueWith2StacksTest %7B%0A%0A    private Q09_QueueWith2Stacks%3CInteger%3E queue;%0A%0A    @BeforeEach%0A    void setUp() %7B%0A        queue = new Q09_QueueWith2Stacks%3C%3E();%0A    %7D%0A%0A    @Test%0A    void testEmptyDequeue() %7B%0A        Assertions.assertThrows(EmptyQueueException.class, () -%3E queue.dequeue());%0A    %7D%0A%0A    @Test%0A    void testNormal() %7B%0A        queue.enqueue(1);%0A        queue.enqueue(2);%0A        Assertions.assertEquals(1, queue.dequeue().intValue());%0A%0A        queue.enqueue(3);%0A        Assertions.assertEquals(2, queue.dequeue().intValue());%0A        Assertions.assertEquals(3, queue.dequeue().intValue());%0A    %7D
 %0A%7D%0A

add test case for QueueWith2Stacks