|
17 | 17 | ### CatTest
|
18 | 18 | #### `void setName(String name)`
|
19 | 19 |
|
20 |
| -* ensure that when `.setName` is invoked on an instance of `Cat`, the `name` field is being set to the respective value. |
| 20 | +* ensure when `.setName` is invoked on an instance of `Cat`, the `name` field is being set to the respective value. |
21 | 21 |
|
22 | 22 | #### `String speak()`
|
23 |
| -* ensure that when `.speak` is invoked on an instance of `Cat`, the value `"meow!"` is returned. |
| 23 | +* ensure when `.speak` is invoked on an instance of `Cat`, the value `"meow!"` is returned. |
24 | 24 |
|
25 | 25 | #### `setBirthDate(Date birthDate)`
|
26 |
| -* ensure that when `.setBirthDate` is invoked on an instance of `Cat`, the `name` field is being set to the respective value. |
| 26 | +* ensure when `.setBirthDate` is invoked on an instance of `Cat`, the `name` field is being set to the respective value. |
27 | 27 |
|
28 | 28 | #### `void eat(Food food)`
|
29 |
| -* ensure that when `.eat` is invoked on an instance of `Cat`, the `numberOfMealsEaten` is increased by 1. |
| 29 | +* ensure when `.eat` is invoked on an instance of `Cat`, the `numberOfMealsEaten` is increased by 1. |
30 | 30 |
|
31 | 31 | #### `Integer getId()`
|
32 |
| -* ensure that when `.getId` is invoked on an instance of `Cat`, the respective `id` value is returned. |
| 32 | +* ensure when `.getId` is invoked on an instance of `Cat`, the respective `id` value is returned. |
33 | 33 |
|
34 | 34 | #### Check Animal inheritance; google search `java instanceof keyword`
|
35 | 35 | * ensure that a `Cat` is an `instanceof` an Animal
|
|
39 | 39 |
|
40 | 40 | ### DogTest
|
41 | 41 | #### `void setName(String name)`
|
42 |
| -* ensure that when `.setName` is invoked on an instance of `Dog`, the `name` field is being set to the respective value. |
| 42 | +* ensure when `.setName` is invoked on an instance of `Dog`, the `name` field is being set to the respective value. |
43 | 43 | #### `String speak()`
|
44 |
| -* ensure that when `.speak` is invoked on an instance of `Dog`, the value `"bark!"` is returned. |
| 44 | +* ensure when `.speak` is invoked on an instance of `Dog`, the value `"bark!"` is returned. |
45 | 45 | #### `setBirthDate(Date birthDate)`
|
46 |
| -* ensure that when `.setBirthDate` is invoked on an instance of `Dog`, the `name` field is being set to the respective value. |
| 46 | +* ensure when `.setBirthDate` is invoked on an instance of `Dog`, the `name` field is being set to the respective value. |
47 | 47 | #### `void eat(Food food)`
|
48 |
| -* ensure that when `.eat` is invoked on an instance of `Dog`, the `numberOfMealsEaten` is increased by 1. |
| 48 | +* ensure when `.eat` is invoked on an instance of `Dog`, the `numberOfMealsEaten` is increased by 1. |
49 | 49 | #### `Integer getId()`
|
50 |
| -* ensure that when `.getId` is invoked on an instance of `Dog`, the respective `id` value is returned. |
| 50 | +* ensure when `.getId` is invoked on an instance of `Dog`, the respective `id` value is returned. |
51 | 51 | #### Check Animal inheritance; google search `java instanceof keyword`
|
52 | 52 | * ensure that a `Dog` is an `instanceof` an Animal
|
53 | 53 | * #### Check Mammal inheritance; google search `java instanceof keyword` test to check Mammal inheritance; google search `java instanceof keyword`
|
|
56 | 56 |
|
57 | 57 | ### AnimalFactoryTest
|
58 | 58 | #### `Animal createDog(String name, Date birthDate)`
|
59 |
| -* ensure that when `.createDog` is invoked on `AnimalFactoryTest` a `Dog` is created with the respective `name` and `birthDate` value. |
| 59 | +* ensure when `.createDog` is invoked on `AnimalFactoryTest` a `Dog` is created with the respective `name` and `birthDate` value. |
60 | 60 | #### `Animal createCat(String name, Date birthDate)`
|
61 |
| -* ensure that when `.createCat` is invoked on `AnimalFactoryTest` a `Dog` is created with the respective `name` and `birthDate` value. |
| 61 | +* ensure when `.createCat` is invoked on `AnimalFactoryTest` a `Dog` is created with the respective `name` and `birthDate` value. |
62 | 62 |
|
63 | 63 | ### CatHouseTest
|
64 | 64 | #### `void add(Cat cat)`
|
65 |
| -* ensure that when `.add` is invoked on the `CatHouse`, a respective `Cat` object can be retrieved from the house. |
| 65 | +* ensure when `.add` is invoked on the `CatHouse`, a respective `Cat` object can be retrieved from the house. |
66 | 66 |
|
67 | 67 | #### `void remove(Cat cat)`
|
68 |
| -* ensure that when `.remove` is invoked on the `CatHouse`, a respective `Cat` object can no longer be retrieved from the house. |
| 68 | +* ensure when `.remove` is invoked on the `CatHouse`, a respective `Cat` object can no longer be retrieved from the house. |
69 | 69 |
|
70 | 70 | #### `void remove(Integer id)`
|
71 |
| -* ensure that when `.remove` is invoked on the `CatHouse`, a `Cat` object with the respective `id` can no longer be retrieved from the house. |
| 71 | +* ensure when `.remove` is invoked on the `CatHouse`, a `Cat` object with the respective `id` can no longer be retrieved from the house. |
72 | 72 |
|
73 | 73 | #### `Cat getCatById(Integer id)`
|
74 |
| -* ensure that when `.getCatById` is invoked on the `CatHouse`, a `Cat` with the respective `id` is returned. |
| 74 | +* ensure when `.getCatById` is invoked on the `CatHouse`, a `Cat` with the respective `id` is returned. |
75 | 75 |
|
76 | 76 | #### `Integer getNumberOfCats()`
|
77 |
| -* ensure that when `.getNumberOfCats()` is invoked on the `CatHouse`, the respective number of `Cat` objects is returned. |
| 77 | +* ensure when `.getNumberOfCats()` is invoked on the `CatHouse`, the respective number of `Cat` objects is returned. |
78 | 78 |
|
79 | 79 | ### DogHouseTest
|
80 | 80 | #### `void add(Dog dog)`
|
81 |
| -* ensure that when `.add` is invoked on the `DogHouse`, a respective `Dog` object can be retrieved from the house. |
| 81 | +* ensure when `.add` is invoked on the `DogHouse`, a respective `Dog` object can be retrieved from the house. |
82 | 82 |
|
83 | 83 | #### `void remove(Integer id)`
|
84 |
| -* ensure that when `.remove` is invoked on the `DogHouse`, a respective `Dog` object can no longer be retrieved from the house. |
| 84 | +* ensure when `.remove` is invoked on the `DogHouse`, a respective `Dog` object can no longer be retrieved from the house. |
85 | 85 |
|
86 | 86 | #### `void remove(Dog dog)`
|
87 |
| -* ensure that when `.remove` is invoked on the `DogHouse`, a `Dog` object with the respective `id` can no longer be retrieved from the house. |
| 87 | +* ensure when `.remove` is invoked on the `DogHouse`, a `Dog` object with the respective `id` can no longer be retrieved from the house. |
88 | 88 |
|
89 | 89 | #### `Dog getDogById(Integer id)`
|
90 |
| -* ensure that when `.getCatById` is invoked on the `DogHouse`, a `Dog` with the respective `id` is returned. |
| 90 | +* ensure when `.getCatById` is invoked on the `DogHouse`, a `Dog` with the respective `id` is returned. |
91 | 91 |
|
92 | 92 | #### `Integer getNumberOfCats()`
|
93 |
| -* ensure that when `.getNumberOfCats()` is invoked on the `DogHouse`, the respective number of `Dog` objects is returned. |
| 93 | +* ensure when `.getNumberOfCats()` is invoked on the `DogHouse`, the respective number of `Dog` objects is returned. |
94 | 94 |
|
95 | 95 |
|
0 commit comments