@Test public void testCanParseNullLine() { IllegalArgumentException e = assertThrows(IllegalArgumentException.class, () -> { parser.canParse(null); }); assertThat(e.getMessage()).isEqualTo("Line cannot be null."); }
@Override public boolean canParse(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } return isCommentStart(line); }
ScriptDocumentationParser extends AbstractIndexedParser<ScriptDocumentation> { @Override public boolean canParse(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } return isCommentStart(line); } }
ScriptDocumentationParser extends AbstractIndexedParser<ScriptDocumentation> { @Override public boolean canParse(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } return isCommentStart(line); }  }
ScriptDocumentationParser extends AbstractIndexedParser<ScriptDocumentation> { @Override public boolean canParse(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } return isCommentStart(line); }  @Override boolean canParse(final String line); @Override ScriptDocumentation parse(final int startingIndex, final List<String> lines); }
ScriptDocumentationParser extends AbstractIndexedParser<ScriptDocumentation> { @Override public boolean canParse(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } return isCommentStart(line); }  @Override boolean canParse(final String line); @Override ScriptDocumentation parse(final int startingIndex, final List<String> lines);  }