1718192021222324252627
Date time = new Date(); SetDate command = new SetDate(time); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! UTILITIES"); output.printLn("SET-DATE " + format.format(time)); output.printLn("PRINT"); assertCommand(output, command); }
1819202122232425262728
SetDate command = new SetDate(time); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! UTILITIES"); output.printLn("SET-DATE " + format.format(time)); output.printLn("PRINT"); assertCommand(output, command); }
1920212223242526272829
SetDate command = new SetDate(time); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! UTILITIES"); output.printLn("SET-DATE " + format.format(time)); output.printLn("PRINT"); assertCommand(output, command); } @Test
1213141516171819202122
@Test public void test() { PageWidth command = new PageWidth(10); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! U1 PW 10"); assertCommand(output, command); } @Test
2223242526272829303132
@Test public void testDefault() { PageWidth command = new PageWidth(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! U1 PW 0"); assertCommand(output, command); } @Test(expected = ValidationException.class)
1314151617181920212223
@Test public void testDefault() { Units command = new Units(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! U"); output.printLn("IN-DOTS"); output.printLn("PRINT"); assertCommand(output, command); }
1415161718192021222324
public void testDefault() { Units command = new Units(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! U"); output.printLn("IN-DOTS"); output.printLn("PRINT"); assertCommand(output, command); }
1516171819202122232425
Units command = new Units(); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! U"); output.printLn("IN-DOTS"); output.printLn("PRINT"); assertCommand(output, command); } @Test
2526272829303132333435
@Test public void test() { Units command = new Units(UnitsType.centimeters); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! U"); output.printLn("IN-CENTIMETERS"); output.printLn("PRINT"); assertCommand(output, command); }
2627282930313233343536
public void test() { Units command = new Units(UnitsType.centimeters); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("! U"); output.printLn("IN-CENTIMETERS"); output.printLn("PRINT"); assertCommand(output, command); }