@Test public void testIsTerminatingTagOpenNullLine() { IllegalArgumentException e = assertThrows(IllegalArgumentException.class, () -> { support.isTerminatingTagOpen(null); }); assertThat(e.getMessage()).isEqualTo("Line cannot be null."); }
public boolean isTerminatingTagOpen(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } final String normalized = normalize(line); for (final String tag : terminatingTags) { if (normalized.startsWith(tag)) { return true; } } return false; }
DocumentationParserSupport { public boolean isTerminatingTagOpen(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } final String normalized = normalize(line); for (final String tag : terminatingTags) { if (normalized.startsWith(tag)) { return true; } } return false; } }
DocumentationParserSupport { public boolean isTerminatingTagOpen(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } final String normalized = normalize(line); for (final String tag : terminatingTags) { if (normalized.startsWith(tag)) { return true; } } return false; }  }
DocumentationParserSupport { public boolean isTerminatingTagOpen(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } final String normalized = normalize(line); for (final String tag : terminatingTags) { if (normalized.startsWith(tag)) { return true; } } return false; }  boolean isCommentClose(final String line); boolean isCommentStart(final String line); boolean isTagOpen(final String line); boolean isTerminatingTagOpen(final String line); String normalize(final String line); String stripCommentClose(final String line); }
DocumentationParserSupport { public boolean isTerminatingTagOpen(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } final String normalized = normalize(line); for (final String tag : terminatingTags) { if (normalized.startsWith(tag)) { return true; } } return false; }  boolean isCommentClose(final String line); boolean isCommentStart(final String line); boolean isTagOpen(final String line); boolean isTerminatingTagOpen(final String line); String normalize(final String line); String stripCommentClose(final String line);  }