Recipe Test - Jomsaruj/coffeemaker GitHub Wiki
Test Cases for class Recipe - RecipeTest.java
| Test ID | Test Case Name | Description | Expected Result | Actual Result | Status |
|---|---|---|---|---|---|
| 42 | testInputValidRecipe | create new recipe with positive integer for quantity and string for name | no error throw | Same as expected result | pass |
| 43 | testInputInvalidPrice | create new recipe with string for price | RecipeException | Same as expected result | pass |
| 44 | testInputNegativePrice | create new recipe with negative integer for price | RecipeException | Same as expected result | pass |
| 45 | testInputZeroPrice | create new recipe with 0 for price | RecipeException | Same as expected result | pass |
| 46 | testInputInvalidCoffee | create new recipe with string for Coffee | RecipeException | Same as expected result | pass |
| 47 | testInputNegativeCoffee | create new recipe with negative number for Coffee | RecipeException | Same as expected result | pass |
| 48 | testInputInvalidMilk | create new recipe with string for milk | RecipeException | Same as expected result | pass |
| 49 | testInputNegativeMilk | create new recipe with negative integer for milk | RecipeException | Same as expected result | pass |
| 50 | testInputInvalidSugar | create new recipe with string for sugar | RecipeException | Same as expected result | pass |
| 51 | testInputNegativeSugar | create new recipe with negative integer for sugar | RecipeException | Same as expected result | pass |
| 52 | testInputInvalidChocolate | create new recipe with string for chocolate | RecipeException | Same as expected result | pass |
| 53 | testInputNegativeChocolate | create new recipe with negative integer for chocolate | RecipeException | Same as expected result | pass |
| 54 | testEquals | Check weather 2 recipe with same name are equal | true | Same as expected result | pass |
| 55 | testNotEquals | Check weather 2 recipe with different name are equal | false | Same as expected result | pass |
Test case that could add later
- Extreme value
- Blank