Add extra condiments

This commit is contained in:
vemacs 2016-10-13 12:02:51 -04:00
parent 862099b76b
commit 8aec81db6a

View file

@ -39,7 +39,8 @@ public class Potato implements Tuber {
* @throws NotDeliciousException If the potato is not delicious * @throws NotDeliciousException If the potato is not delicious
*/ */
public void prepare() throws NotDeliciousException { 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(); this.listCondiments();
if (!this.isDelicious()) throw new NotDeliciousException(NotDeliciousReason.NOT_BAKED); if (!this.isDelicious()) throw new NotDeliciousException(NotDeliciousReason.NOT_BAKED);
} }