Merge pull request #93 from vemacs/more-condiments

Add extra condiments
This commit is contained in:
Trent Hensler 2016-10-17 11:26:38 -07:00 committed by GitHub
commit 06991c86d0

View file

@ -39,7 +39,8 @@ public class Potato implements Tuber {
* @throws NotDeliciousException If the potato is not delicious
*/
public void prepare() throws NotDeliciousException {
this.addCondiments("sour cream", "chives", "butter", "crumbled bacon", "grated cheese", "ketchup", "salt", "tabasco");
this.addCondiments("sour cream", "chives", "butter", "crumbled bacon", "grated cheese", "ketchup", "pepper",
"salt", "tabasco", "tomatoes");
this.listCondiments();
if (!this.isDelicious()) throw new NotDeliciousException(NotDeliciousReason.NOT_BAKED);
}