Package tests
Class QueueTest
java.lang.Object
tests.QueueTest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Tests that we are removing the element to the Doubly Linked List.void
Checks that thedeQueue
method throws a NoSuchElementException if the Doubly Linked List is empty.void
Tests theenQueue
method to verify if it's adding the element to the Doubly Linked List.void
Tests that theenQueue
method throws a NullPointerException if we try and pass a null value in the param.void
Tests that we are able to access the first element of the Doubly Linked List.void
Checks that the actual method throws a NoSuchElementException if the Doubly Linked List is Empty.void
Tests that theisEmpty
is returning the correct Boolean based on the size of the Doubly Linked List.void
Tests that the size modified correctly as you implement methods.
-
Constructor Details
-
QueueTest
public QueueTest()
-
-
Method Details
-
test_Enqueue
@Test public void test_Enqueue()Tests theenQueue
method to verify if it's adding the element to the Doubly Linked List. -
test_Enqueue_Invalid
@Test public void test_Enqueue_Invalid()Tests that theenQueue
method throws a NullPointerException if we try and pass a null value in the param. -
test_DeQueue
@Test public void test_DeQueue()Tests that we are removing the element to the Doubly Linked List. -
test_DeQueue_Invalid
@Test public void test_DeQueue_Invalid()Checks that thedeQueue
method throws a NoSuchElementException if the Doubly Linked List is empty. -
test_Front
@Test public void test_Front()Tests that we are able to access the first element of the Doubly Linked List. -
test_Front_Invalid
@Test public void test_Front_Invalid()Checks that the actual method throws a NoSuchElementException if the Doubly Linked List is Empty. -
test_IsEmpty
@Test public void test_IsEmpty()Tests that theisEmpty
is returning the correct Boolean based on the size of the Doubly Linked List. -
test_Size
@Test public void test_Size()Tests that the size modified correctly as you implement methods.
-