Before add test cases - Jomsaruj/coffeemaker GitHub Wiki

The following JaCoCo test report is generated BEFORE add more test case

As you can see unit test for CoffeeMaker class cover only 96% of all instruction and cover only 83% of all branches. Here are some more details about that.

Area where my test is not cover is in method makeCoffee(int, int). I have to add one more test case to test the situation that user purchase non-exist recipe.

On the other hand, unit test for class Inventory cover 100% of all instruction, but it cover only 84% of all branches.

Area where my test is not cover is in method set. I have to add one more test case to test the situation that user want to set all inventory equal to 0