Exemplo n.º 1
0
 @Test
 public void shouldDispatchUnitCommands() {
   controller.command(CommandFactory.on("K9"));
   verify(listener, timeout(1000)).on(CommandFactory.on("K9"));
 }
Exemplo n.º 2
0
 @Test(expected = UnsupportedOperationException.class)
 public void shouldFailForUnsupportedCommands() {
   controller.command(CommandFactory.allLightsOff('A'));
 }
Exemplo n.º 3
0
 @After
 public void stop() {
   controller.close();
 }