/** Tests the disable method */ @Test public void testDisable() { rabbit.enable(); assertEquals(true, rabbit.canAct()); rabbit.disable(); assertEquals(false, rabbit.canAct()); }
/** Tests the can act method */ @Test public void testCanAct() { rabbit.enable(); assertEquals(true, rabbit.canAct()); }