coldstar96 / cse403

Budget Manager Project
1 stars 2 forks source link

Create a Log model class #51

Closed brucec5 closed 11 years ago

brucec5 commented 11 years ago

This class should be written using a Test Driven Development style so that we get that requirement filled.

Therefore, this class should be stubbed out with all needed methods but none of them are implemented. Then, you will write a bunch of test cases for the class which will all fail. Then when you're done with that you commit your code. Only once you've committed those changes can you start working on the implementation.

A preliminary idea is something that acts as a list of entries. For now, it will probably just be created to use a list of all entries of a user, but will probably be used to hold arbitrary lists of

Inside of the Log class are a bunch of internal Comparator<Entry> classes that sort by different attributes. The Log can then choose which comparator to use and have a method that returns a sorted list of Entries that can be used in the actual LogActivity.

brucec5 commented 11 years ago

Current progress: the interface and unit tests for this are described in https://github.com/coldstar96/cse403/pull/62.

Implementation will follow once that's checked out.

brucec5 commented 11 years ago

Implementation was merged yesterday. Closing.