示例#1
0
 @Test
 public void testSetDown() {
   key.setDown(true);
   assertTrue(key.isDown());
   key.setDown(false);
   assertFalse(key.isDown());
 }
示例#2
0
 @Test
 public void testToggle() {
   key.toggle(true);
   assertTrue(key.isDown());
   key.toggle(false);
   assertFalse(key.isDown());
 }
示例#3
0
 @Test
 public void testInitialState() {
   assertFalse(key.isDown());
   assertFalse(key.isClicked());
 }