@Test public void testIsTagOpenNullLine() { IllegalArgumentException e = assertThrows(IllegalArgumentException.class, () -> { support.isTagOpen(null); }); assertThat(e.getMessage()).isEqualTo("Line cannot be null."); }
public boolean isTagOpen(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } if (isTerminatingTagOpen(line)) { return true; } final String normalized = normalize(line); return normalized.startsWith("@value") || normalized.startsWith("@codeSet") || normalized.startsWith("@optional"); }
DocumentationParserSupport { public boolean isTagOpen(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } if (isTerminatingTagOpen(line)) { return true; } final String normalized = normalize(line); return normalized.startsWith("@value") || normalized.startsWith("@codeSet") || normalized.startsWith("@optional"); } }
DocumentationParserSupport { public boolean isTagOpen(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } if (isTerminatingTagOpen(line)) { return true; } final String normalized = normalize(line); return normalized.startsWith("@value") || normalized.startsWith("@codeSet") || normalized.startsWith("@optional"); }  }
DocumentationParserSupport { public boolean isTagOpen(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } if (isTerminatingTagOpen(line)) { return true; } final String normalized = normalize(line); return normalized.startsWith("@value") || normalized.startsWith("@codeSet") || normalized.startsWith("@optional"); }  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 isTagOpen(final String line) { if (line == null) { throw new IllegalArgumentException("Line cannot be null."); } if (isTerminatingTagOpen(line)) { return true; } final String normalized = normalize(line); return normalized.startsWith("@value") || normalized.startsWith("@codeSet") || normalized.startsWith("@optional"); }  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);  }