The application is aimed to demonstrate Test Driven Development technique in Action. First the unit tests RestaurantTest.java were implemented and then the actual business logic was written in order to pass the tests.
The application represents basic algorithm of waiter's job:
- The table registered with the amount of actual clients/customers (see Restaurant#initTable)
- Then the application (waiter) noting the orders for each customer one by one (see Restaurant#customerSays)
- Then when all the orders are made, waiter creating final oder for the whole table (see Restaurant#createOrder)
$ mvn -U test
- Java 17
- Maven
- JUnit 4