Question: 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

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!