File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
src/test/java/com/techreturners/cats Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,26 @@ public void checkCatHeight() {
4141
4242 @ Test
4343 public void checkLionHeight () {
44- Cat domesticCat = new LionCat ();
45- assertEquals (1100 , domesticCat .getAverageHeight ());
44+ Cat lionCat = new LionCat ();
45+ assertEquals (1100 , lionCat .getAverageHeight ());
46+ }
47+
48+
49+ @ Test
50+ public void feedTheLion () {
51+ Cat lionCat = new LionCat ();
52+ assertEquals ("Roar!!!!" , lionCat .eat ());
53+ }
54+
55+ @ Test
56+ public void feedTheCheetah () {
57+ Cat cheetahCat = new CheetahCat ();
58+ assertEquals ("Zzzzzzz" , cheetahCat .eat ());
59+ }
60+
61+ @ Test
62+ public void feedTheCat () {
63+ Cat domesticCat = new DomesticCat ();
64+ assertEquals ("Purrrrrrr" , domesticCat .eat ());
4665 }
47-
4866}
You can’t perform that action at this time.
0 commit comments