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

Method parentInPom

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

Verifies no <parent> tag in pom.xml.

()

Source from the content-addressed store, hash-verified

395 * Verifies no <parent> tag in {@code pom.xml}.
396 */
397 private void parentInPom() throws IOException {
398 final List<String> lines = FileUtils.readLines(new File("pom.xml"), SOURCE_ENCODING);
399 for (int i = 0; i < lines.size(); i++) {
400 if (lines.get(i).contains("<parent>")) {
401 addFailure("pom.xml", i + 1, "'pom.xml' should not have <parent> tag");
402 break;
403 }
404 }
405 }
406
407 /**
408 * Verifies that no direct instantiation of WebClient from a test that runs with BrowserRunner.

Callers 1

codeStyleMethod · 0.95

Calls 4

addFailureMethod · 0.95
containsMethod · 0.65
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected