1011121314151617181920
public class OnFeedTest { @Test public void testDefault() { OnFeed command = new OnFeed(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("ON-FEED FEED"); assertCommand(output, command);
2021222324252627282930
assertCommand(output, command); } @Test public void testString() { OnFeed command = new OnFeed("FEED"); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("ON-FEED FEED"); assertCommand(output, command);
3031323334353637383940
assertCommand(output, command); } @Test public void testEnum() { OnFeed command = new OnFeed(OnFeedMode.feed); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("ON-FEED FEED"); assertCommand(output, command);
40414243444546474849
assertCommand(output, command); } @Test(expected = ValidationException.class) public void testValidation() { OnFeed command = new OnFeed(); command.setOnFeedMode(""); command.getCommandByteArray(); }