Question: Implement a test suite for your implementation of ListQueue: boolean testEmpty(ListQueue yourQueue, JavaQueue correctQueue) : This function should return true if the ListQueue implementation matches

Implement a test suite for your implementation of ListQueue:

boolean testEmpty(ListQueue yourQueue, JavaQueue correctQueue):

This function should return true if the ListQueue implementation matches the JavaQueue implementation (Java ADT) when both queues are empty. Test all three functions (enqueue, dequeue, peek).

(assume that you may call any and all other methods of the class to help you solve the problem )

Implement a test suite for your implementation of ListQueue: boolean testEmpty(ListQueue yourQueue,

JavaQueue correctQueue): This function should return true if the ListQueue implementation matchesthe JavaQueue implementation (Java ADT) when both queues are empty. Test allthree functions (enqueue, dequeue, peek). (assume that you may call any andall other methods of the class to help you solve the problem

import java.util.Queue; public class ListQueue t private class Node /TODO Implement Linked List Node String data; Node next; public Node(String data) this . data = data; this.next null; //Connects the String to the link //Class variables here, if necessary Node front; Node back; public ListQueueO /TODO Implement constructor front = null; back = null

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!