SttyTerminal extends ExternalCommandTerminal { protected Integer parseLine(String line) { return parseLine(line, COLUMNS_PATTERN_LINUX, COLUMNS_PATTERN_OSX); } SttyTerminal(BootLogger logger);   }
@Test public void testParseLine_OSX() { String line = "speed 9600 baud; 39 rows; 136 columns;"; assertEquals(new Integer(136), terminal.parseLine(line)); }
@Test public void testParseLine_Linux() { String line = "speed 9600 baud; rows 40; columns 148; line = 0;"; assertEquals(new Integer(148), terminal.parseLine(line)); }
@Test public void testParseLine_Docker_Ubuntu() { String line = "speed 38400 baud; rows 0; columns 0; line = 0;"; assertEquals(new Integer(0), terminal.parseLine(line)); }
@Test public void testParseLine_Invalid() { String line = "not a valid line"; assertNull(terminal.parseLine(line)); }