Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a class named TestDataStructures 1 in the tests package ( tests . TestDataStructures 1 ) and write the following utility method in that class

Create a class named TestDataStructures1 in the tests package (tests.TestDataStructures1) and write the following utility method in that class (Note: Do not add the @Test annotation to this method since it is not itself a tests):
compareListsOfRatings - Write a method named compareListsOfRatings in the tests.TestDataStructures1 class that:
Takes [references to]2 LinkedListNode objects as parameters
Returns a boolean that is true if the rating and reviewer id of all Ratings in both lists are exactly the same and are in the same order. The method either returns false, or fails a JUnit assert, if the lists do not contain all the same values of their ratings objects in the same order
Note that you cannot use == or .equals to compare 2 Ratings. You must check the rating and reviewer id values separately

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions