Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Jul 30, 2024
1 parent 95c862c commit d3e0e2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/test/java/org/htmlunit/archunit/Architecture2Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public static void allElementTestShouldTestTheSameObjects(final JavaClasses clas
@ArchTest
public static void allHostTestShouldTestTheSameObjects(final JavaClasses classes) {
compare(classes, "HostClassNameTest", "HostTypeOfTest");
compare(classes, "HostClassNameTest", "DedicatedWorkerGlobalScopeClassNameTest");
compare(classes, "HostClassNameTest", "DedicatedWorkerGlobalScopeTypeOfTest");
}

Expand Down Expand Up @@ -143,6 +144,8 @@ else if (oneTests.size() == 0) {
.that()
.doNotHaveFullyQualifiedName("org.htmlunit.BrowserVersion")
.and().doNotHaveFullyQualifiedName("org.htmlunit.javascript.configuration.AbstractJavaScriptConfiguration")
.and().doNotHaveFullyQualifiedName("org.htmlunit.javascript.host.worker.DedicatedWorkerGlobalScope")

.and().doNotHaveFullyQualifiedName("org.htmlunit.css.BrowserConfiguration$FF")
.and().doNotHaveFullyQualifiedName("org.htmlunit.css.BrowserConfiguration$FFNotIterable")
.and().doNotHaveFullyQualifiedName("org.htmlunit.css.BrowserConfiguration$FFESR")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,11 @@ public void jsxClasses() {
continue;
}
if ("org.htmlunit.javascript.host.intl".equals(klass.getPackage().getName())
|| "Reflect".equals(klass.getSimpleName())

|| "DedicatedWorkerGlobalScope".equals(klass.getSimpleName())
|| "WorkerLocation".equals(klass.getSimpleName())
|| "WorkerNavigator".equals(klass.getSimpleName())

|| "ProxyAutoConfig".equals(klass.getSimpleName())) {
continue;
}
Expand Down

0 comments on commit d3e0e2b

Please sign in to comment.