MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / alertsToList

Method alertsToList

src/test/java/org/htmlunit/CodeStyleTest.java:668–670  ·  view source on GitHub ↗

Returns a list of String's of the alerts which are in the specified index. @param lines the list of strings @param alertsIndex the index in which the \@Alerts is defined @return list of alert strings

(final List<String> lines, final int alertsIndex)

Source from the content-addressed store, hash-verified

666 * @return list of alert strings
667 */
668 public static List<String> alertsToList(final List<String> lines, final int alertsIndex) {
669 return alertsToList(lines, alertsIndex, false);
670 }
671
672 private static List<String> alertsToList(final List<String> lines, final int alertsIndex,
673 final boolean preserveCommas) {

Callers 2

alertsMethod · 0.95
addExpectationMethod · 0.95

Calls 15

substringMethod · 0.80
endsWithMethod · 0.80
trimMethod · 0.80
isEmptyMethod · 0.65
lengthMethod · 0.65
containsMethod · 0.65
equalsMethod · 0.45
getMethod · 0.45
setMethod · 0.45
startsWithMethod · 0.45
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected