blob: 986b5ee6c1293a9704f0a6e558db097c4b5c9a8f [file] [log] [blame] [raw]
package net.glowstone.entity.passive;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import net.glowstone.entity.GlowEntityTest;
import org.junit.Test;
public class GlowBatTest extends GlowEntityTest<GlowBat> {
public GlowBatTest() {
super(GlowBat::new);
}
@Test
public void testSleep() {
entity.setAwake(false);
assertFalse(entity.isAwake());
}
@Test
public void testWakeUp() {
entity.setAwake(true);
assertTrue(entity.isAwake());
}
}