END
1718192021222324252627
public void test() { PrintJob<LabelModeCommandInterface> printJob = new PrintJob<LabelModeCommandInterface>(); printJob.add(new Abort()); printJob.add(new End()); byte[] expected; expected = "ABORT\r\nEND\r\n".getBytes();
3233343536373839404142
@Test public void testChain() { PrintJob<LabelModeCommandInterface> printJob = new PrintJob<LabelModeCommandInterface>(); printJob = printJob.add(new Abort()).add(new End()); byte[] expected; expected = "ABORT\r\nEND\r\n".getBytes();
170171172173174175176177178179180
public void testExecute() throws Exception { PrintJob<LabelModeCommandInterface> printJob = new PrintJob<LabelModeCommandInterface>(); printJob.add(new Abort()); printJob.add(new End()); byte[] expected; expected = "ABORT\r\nEND\r\n".getBytes();
89101112131415161718
public class EndTest { @Test public void test() { End command = new End(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("END"); assertCommand(output, command);