ENCODING {encodingType}
1011121314151617181920
public class EncodingTest { @Test public void test() { Encoding command = new Encoding(EncodingType.ascii); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("ENCODING ASCII"); assertCommand(output, command);
2021222324252627282930
assertCommand(output, command); } @Test public void testWithString() { Encoding command = new Encoding("ASCII"); CommandOutputBuilder output = new CommandOutputBuilder(); output.printLn("ENCODING ASCII"); assertCommand(output, command);
303132333435363738
assertCommand(output, command); } @Test(expected = ValidationException.class) public void testValidation() { Encoding command = new Encoding(); command.getCommandByteArray(); }