Skip to content

Commit f418317

Browse files
Simon MorganSimon Morgan
authored andcommitted
fix: assertTrue and assertFalse tests updated
1 parent 65d727e commit f418317

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/com/techreturners/cats/CatTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ public class CatTest {
88
@Test
99
public void checkCatIsAwake() {
1010
Cat domesticCat = new DomesticCat();
11-
assertFalse("Cat should be awake by default", domesticCat.isAsleep());
11+
assertFalse(domesticCat.isAsleep(), "Cat should be awake by default");
1212
}
1313

1414
@Test
1515
public void checkCatCanGoToSleep() {
1616
Cat domesticCat = new DomesticCat();
1717
domesticCat.goToSleep();
18-
assertTrue("Cat should be snoozing", domesticCat.isAsleep());
18+
assertTrue(domesticCat.isAsleep(), "Cat should be snoozing");
1919
}
2020

2121
@Test
2222
public void checkCatCanWakep() {
2323
Cat domesticCat = new DomesticCat();
2424
domesticCat.goToSleep();
2525
domesticCat.wakeUp();
26-
assertFalse("Cat should be awake now", domesticCat.isAsleep());
26+
assertFalse(domesticCat.isAsleep(), "Cat should be awake now");
2727
}
2828

2929
@Test

0 commit comments

Comments
 (0)