coldstar96 / cse403

Budget Manager Project
1 stars 2 forks source link

Move the list of budgets to be a static list in Budget #92

Closed brucec5 closed 11 years ago

brucec5 commented 11 years ago

Right now, we have the list of Budgets living in the UBudgetApp class. This makes testing the AddEntryActivity class a bit weird (due to some bootstrapping problem), so I propose we move the list of Budgets into the Budget class as a private static field.

This way, we can also add a budget to the list upon creating it in the constructor so we don't have to duplicate code elsewhere.

grablair commented 11 years ago

Completed by pull request #93 .