Skip to content

Commit

Permalink
a bit cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Jul 24, 2021
1 parent 6bb8899 commit 7e563f2
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,18 @@ public class ArchitectureTest {
*/
@ArchTest
public static final ArchRule awtPackageRule = noClasses()
.that().haveNameNotMatching(".*\\.AwtRenderingBackend.*"
+ "|.*\\.DoTypeProcessor.*|.*\\.AppletContextImpl.*|"
+ ".*ComputedCSSStyleDeclaration.*")
.that()
.doNotHaveFullyQualifiedName(
"com.gargoylesoftware.htmlunit.javascript.host.canvas.rendering.AwtRenderingBackend")
.and().doNotHaveFullyQualifiedName(
"com.gargoylesoftware.htmlunit.javascript.host.canvas.rendering.AwtRenderingBackend$SaveState")
.and().doNotHaveFullyQualifiedName(
"com.gargoylesoftware.htmlunit.javascript.host.canvas.rendering.AwtRenderingBackend$1")
.and().doNotHaveFullyQualifiedName(
"com.gargoylesoftware.htmlunit.html.DoTypeProcessor")
.and().doNotHaveFullyQualifiedName(
"com.gargoylesoftware.htmlunit.javascript.host.css.ComputedCSSStyleDeclaration")
.and().doNotHaveFullyQualifiedName("com.gargoylesoftware.htmlunit.html.applets.AppletContextImpl")
.should().dependOnClassesThat().resideInAnyPackage("java.awt..");

/**
Expand Down

0 comments on commit 7e563f2

Please sign in to comment.