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

Method isIgnored

src/test/java/org/htmlunit/ExternalTest.java:269–290  ·  view source on GitHub ↗
(final String groupId, final String artifactId,
            final String version, final Pattern ignorePattern)

Source from the content-addressed store, hash-verified

267 }
268
269 private static boolean isIgnored(final String groupId, final String artifactId,
270 final String version, final Pattern ignorePattern) {
271 // version > 3.12.0 does not work with our site.xml and also not with a refactored one
272 if ("maven-site-plugin".equals(artifactId)
273 && (version.startsWith("3.12.1") || version.startsWith("3.20.") || version.startsWith("3.21."))) {
274 return true;
275 }
276
277 // ancient common versions
278 if ("commons-io".equals(artifactId) && (version.startsWith("2003"))) {
279 return true;
280 }
281 if ("commons-net".equals(artifactId) && (version.startsWith("2003"))) {
282 return true;
283 }
284
285 if (ignorePattern.matcher(version).matches()) {
286 return true;
287 }
288
289 return false;
290 }
291}

Callers 1

assertVersionMethod · 0.95

Calls 3

equalsMethod · 0.45
startsWithMethod · 0.45
matchesMethod · 0.45

Tested by

no test coverage detected