Skip to content

TevinGlover/ItemSorter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ItemSorter

  • Objective - To implement an ItemSorter which returns an array of Item objects sorted by the respective field.
  • Purpose - To establish familiarity with:
    • Interfaces
    • Comparator<T>

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.

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%