1011121314151617181920
public class RewindTest { @Test public void testDefault() { Rewind command = new Rewind(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("REWIND-ON"); assertCommand(output, command);
2021222324252627282930
assertCommand(output, command); } @Test public void test() { Rewind command = new Rewind(OnOffMode.off); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("REWIND-OFF"); assertCommand(output, command);
3031323334353637
assertCommand(output, command); } @Test(expected = ValidationException.class) public void testValidate() { Rewind command = new Rewind(null); command.getCommandByteArray(); }