Repository files navigation
Objective - To implement an ItemSorter which returns an array of Item objects sorted by the respective field.
Purpose - To establish familiarity with:
Part 1 - Create method definitions for class Item
Write method definitions for Item class.
Ensure 100% success rate of each test class in test.rocks.zipcode.io.item
Part 2 - Implement Comparator interface
Implement Comparator interface for each class in the package src.rocks.zipcode.io.comparators.
Write method definitions for each Comparator.
Ensure 100% success rate of each test class in test.rocks.zipcode.io.comparators.
Part 3 - Create method definitions for class ItemSorter
Write method definitions for ItemSorter
Ensure 100% success rate of each test class in test.rocks.zipcode.io.itemsorter.
Part 4 - Write test cases for sorting by price
Using SortByIdTest and SortByNameTest as example classes, write test at least 3 cases for SortByPriceTest.
Verify with classmates that your tests are comprehensive, and covering the correct aspect of the program.
You can’t perform that action at this time.