- 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.
- Updated to ASM 9
- Added condition AllTopLevelClassesHaveATestCondition
- Added rule Units4JConditions