Answered step by step
Verified Expert Solution
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 TestDataStructures in the tests package testsTestDataStructures 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.TestDataStructures class that:
Takes references to 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 Ratings. You must check the rating and reviewer id values separately
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started