Skip to content

Commit 4bd29a9

Browse files
committed
Added to DD7
1 parent 4a88498 commit 4bd29a9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
0 Bytes
Binary file not shown.

TeachingKidsProgramming/src/org/teachingkidsprogramming/section07events/DeepDive07Events.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ public void feedTheNinja() throws Exception
9090
boolean likedIt = michealangelo.eatPizza(pizza);
9191
Assert.assertTrue("Michealangelo barfs! Wrong pizza!", likedIt);
9292
}
93+
@Test
94+
public void feedTheNinjaTwo() throws Exception
95+
{
96+
Tortoise karai = new Tortoise();
97+
karai.likesTopping(Topping.Anchovy);
98+
Pizza pizza = new Pizza();
99+
pizza.addTopping(Topping.Anchovy);
100+
boolean likedIt = karai.eatPizza(pizza);
101+
Assert.assertTrue("Karai starves! Wrong pizza!", _____);
102+
}
93103
/**
94104
* Ignore the following, It's needed to run the homework
95105
*

0 commit comments

Comments
 (0)