Skip to content

Latest commit

 

History

History
37 lines (33 loc) · 2.1 KB

release-notes.md

File metadata and controls

37 lines (33 loc) · 2.1 KB

Release Notes

0.12.0

General

  • Dependency updates
  • Changed from JUnit 4 to 5 (Jupiter)
    • AssertCoverage is now deprecated in favour of Units4JConditions
    • AssertDependencies is now deprecated in favour of standard ArchUnit rules like this:
         @ArchTest
         static final ArchRule core_access_only_to_defined_packages =
             classes()
                 .that()
                     .resideInAPackage("my.package.core..")
                 .should()
                     .onlyDependOnClassesThat()
                     .resideInAnyPackage("my.package.common..", "java.lang..");
    • MultipleCommands was moved to utils4j and is now deprecated
    • TestCommand was moved to utils4j and is now deprecated
    • TestOmitted was moved to utils4j and is now deprecated
    • Units4JUtils.setPrivateField was moved to utils4j and is now deprecated
    • Units4JUtils.assertCauseXxx/isExpectedException methods are deprecated in favour of AssertJ assertThatThrownBy method
         assertThatThrownBy(() -> { throw new Exception("boom!"); })
            .isInstanceOf(Exception.class)
            .hasRootCauseMessage("boom");
    • Units4JUtils.replaceXmlAttr is now deprecated in favour of Use XMLUnit with ignoring field while comparing result.

Analyzer

  • Updated to ASM 9

ArchUnit