Adding initial vending machine code - TDD example
Make test for empty trays on instantiation pass
Add failing test for topUp an empty tray
Add topUp method - get failure instead of compile error
Make @Test topUp_should_fill_up_empty_tray pass
Refactor - extract constant MAX_ITEMS_PER_TRAY
Refactor - change topUp return value; Add failing test for topUp return value
Make topUp_should_return_number_of_items_added_to_empty_tray pass
Refactor test - extract constant FIRST_TRAY
Refactor test - add @Before setup method to remove duplication
Refactor test - remove duplication, use constant MAX_ITEMS_PER_TRAY
Refactor test - rename to use fill instead of topUp
Add failing test fill_should_return_number_of_items_added_to_partially_empty_tray
Make failing test pass