Skip to content

Commit 1ed2cde

Browse files
LeonLeon
authored andcommitted
updated readme
1 parent b094081 commit 1ed2cde

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717
### CatTest
1818
#### `void setName(String name)`
1919

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.
2121

2222
#### `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.
2424

2525
#### `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.
2727

2828
#### `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.
3030

3131
#### `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.
3333

3434
#### Check Animal inheritance; google search `java instanceof keyword`
3535
* ensure that a `Cat` is an `instanceof` an Animal
@@ -39,15 +39,15 @@
3939

4040
### DogTest
4141
#### `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.
4343
#### `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.
4545
#### `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.
4747
#### `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.
4949
#### `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.
5151
#### Check Animal inheritance; google search `java instanceof keyword`
5252
* ensure that a `Dog` is an `instanceof` an Animal
5353
* #### Check Mammal inheritance; google search `java instanceof keyword` test to check Mammal inheritance; google search `java instanceof keyword`
@@ -56,40 +56,40 @@
5656

5757
### AnimalFactoryTest
5858
#### `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.
6060
#### `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.
6262

6363
### CatHouseTest
6464
#### `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.
6666

6767
#### `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.
6969

7070
#### `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.
7272

7373
#### `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.
7575

7676
#### `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.
7878

7979
### DogHouseTest
8080
#### `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.
8282

8383
#### `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.
8585

8686
#### `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.
8888

8989
#### `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.
9191

9292
#### `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.
9494

9595

0 commit comments

Comments
 (0)