ENCODING {encodingType}
1011121314151617181920
public class PatternTest { @Test public void testString() { Pattern command = new Pattern("106"); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("PATTERN 106"); assertCommand(output, command);
2021222324252627282930
assertCommand(output, command); } @Test public void testEnum() { Pattern command = new Pattern(PatternType.crossHatckPattern); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("PATTERN 106"); assertCommand(output, command);
303132333435363738
assertCommand(output, command); } @Test(expected = ValidationException.class) public void testValidation() { Pattern command = new Pattern(); command.getCommandByteArray(); }