The Coffee Kata exercise is designed to provide a hands-on experience in learning and demonstrating the usage of latest Java features while comparing them with older.
The domain for the kata is a Coffee Shop. There are several domain
classes that are shared by all the exercises. These are
Items
,
CoffeeShopOrder
,
Beverage
,
Tea
,
CoffeeDrink
,
Latte
,
Macchiato
,
Americano
,
BakeryItem
,
Cookie
,
Bagel
, and
Donut
.
This kata involves refactoring existing code and implementing missing code! In the new-java-features
module, you will find a test class called CoffeeShopTest. Each test case contains a TODO that needs to be completed in order to make the code pass. All the code you need to complete is in the new-java-features
module, with the corresponding solutions in coffee-shop-kata-solutions/new-java-features
. The purpose of the old-java-features
module is to show you the Java 8 way of solving these problems; there are no TODOs in this module. For technical setup, follow the instructions in SETUP.md
!