Question: Add the following method stub to App.java: public static LocalDate getDateForLowestMeasurement(List measurements, List dates) { return null; } Add a comment with your name at

Add the following method stub to App.java:

public static LocalDate getDateForLowestMeasurement(List measurements, List dates) { return null; }

Add a comment with your name at the top of the file and use Eclipse's quick fixes to add the appropriate imports, selecting java.util.List to resolve the List class.

Implement the method such that, when given parallel sequences of measurements and dates, the method returns the date of the lowest measurement. Break ties by choosing the measurement at the largest index, and return null if the sequences are empty can be found here https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html

Using the method signature, apply category-partition testing to create a test suite for the getDateForLowestMeasurement method. For the lists, use categories such as "length" and "element order" and include at least one category besides these two. To write a LocalDate in your test code, write LocalDate.of([year], [month], [dayOfMonth]) where [year], [month], and [dayOfMonth] are all replaced with integers.

Create a JUnit 4 test class to test your implementation. Use descriptive test names. Document your categories and partitions in a comment at the top of the test class.

Verify that the test cases you wrote all pass.

Check the coverage of your test suite. If you have not achieved 100% statement coverage, augment your test suite or simplify your implementation until you reach 100% statement coverage, and all of your tests pass.

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!