Question: How would I write a test case for the following steps so that the test cases run properly @Test void dequeueItemsHasRightValuesAndSize() { Queue testQ =
How would I write a test case for the following steps so that the test cases run properly
@Test
void dequeueItemsHasRightValuesAndSize() {
Queue testQ = new Queue<>();
int result;
enqueueValues(testQ, 2, 6);
result = testQ.dequeue();
//Step 4: ADD ASSERTIONS: result should be 2, size should be 5, should not be empty
assertEquals("2", testQ.dequeue());
}
Step by Step Solution
There are 3 Steps involved in it
To write a test case for the given steps so that the test case runs properly ... View full answer
Get step-by-step solutions from verified subject matter experts
