Skip to content

ArchUnit 0.19.0

Compare
Choose a tag to compare
@codecholeric codecholeric released this 30 May 16:06

Bug Fixes

  • The last release archive contained a couple of classes from dependencies that were not relocated and thus lead to duplicate classes warnings in some environments. These classes have been removed (see #593)

Enhancements

Core

  • JavaField now knows its generic type (retrievable via JavaField.getType()). Furthermore type arguments of generic field types are now part of the JavaClass.directDependencies{From/To}Self (see #595; thanks a lot to @hankem for extensive reviews)

Lang

  • new method noClasses()...should().transitivelyDependOnClassesThat(..)... (see #575; thanks a lot to @hankem)
  • the failure descriptions of ArchRules can not be customized (see #343; thanks a lot to @Farbauti89)

Library

  • new method layeredArchitecture()...mayOnlyAccessLayers(..)... (see #592; thanks a lot to @GiorgadzeLuka)
  • improved readability for cycle rule violations (see #369; thanks a lot to @jzheaux)
  • FreezingArchRule can now refreeze all violations, if current violations should simply be added to the ViolationStore without any failure (see #510)

JUnit

  • annotations of test methods and fields are now passed to the TestDescription by the JUnit 4 test support (see #552)

Further Acknowledgement