11121314151617181920
@Test public void test() { CutAt command = new CutAt(10); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("CUT-AT 10"); assertCommand(output, command); }
21222324252627282930
@Test public void testDefault() { CutAt command = new CutAt(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("CUT-AT 0"); assertCommand(output, command); }
353637383940414243444546
@Test public void testDefault() { Country command = new Country(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! UTILITIES"); output.printLn("COUNTRY USA"); output.printLn("PRINT"); assertCommand(output, command); }
10111213141516171819
@Test public void test() { StartPrint command = new StartPrint(1.1, 2, 3, 4.4, 5); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! 1.1 2 3 4.4 5"); assertCommand(output, command); }
@Test public void test() { SetBold command = new SetBold(10); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! U1 SETBOLD 10"); assertCommand(output, command); }
@Test public void testDefault() { SetBold command = new SetBold(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! U1 SETBOLD 0"); assertCommand(output, command); }
@Test public void test() { PageWidth command = new PageWidth(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("PAGE-WIDTH 0"); assertCommand(output, command); }
@Test public void testDefault() { PageWidth command = new PageWidth(10); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("PAGE-WIDTH 10"); assertCommand(output, command); }
@Test public void testDefault() { InverseLine command = new InverseLine(new Position(1, 2), new Position(3, 4)); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("INVERSE-LINE 1 2 3 4 1"); assertCommand(output, command); }
111213141516171819202122
@Test public void test() { SetFormFeed command = new SetFormFeed(1, 2); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! U"); output.printLn("SETFF 1 2"); output.printLn("PRINT"); assertCommand(output, command); }