5 Commits

Author SHA256 Message Date
Fridrich Štrba
7fca3afbf9 3.27.7 changes 2026-01-27 15:21:59 +01:00
Fridrich Štrba
693f1bda34 Fix i586 build 2026-01-27 06:17:31 +01:00
Fridrich Štrba
57d2764b53 3.27.7 2026-01-27 05:52:10 +01:00
02fb70d91c Accepting request 1202515 from Java:packages
Use SOURCE_DATE_EPOCH for reproducible builds

OBS-URL: https://build.opensuse.org/request/show/1202515
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/assertj-core?expand=0&rev=4
2024-09-23 13:23:15 +00:00
9aff8ce33c OBS-URL: https://build.opensuse.org/package/show/Java:packages/assertj-core?expand=0&rev=16 2024-09-23 05:32:11 +00:00
4 changed files with 151 additions and 7 deletions

Binary file not shown.

BIN
assertj-build-3.27.7.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,142 @@
-------------------------------------------------------------------
Tue Jan 27 13:52:15 UTC 2026 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 3.27.7
* Security
+ Fix XXE vulnerability in isXmlEqualTo assertion
(bsc#1257293, CVE-2026-24400)
* Breaking Changes
+ Delegate OptionalDouble value comparison to Double.compare
in hasValue assertion
+ Replace assertThat(Temporal) with
assertThatTemporal(Temporal)
* Deprecated
+ Deprecate ObjectAssertFactory in favor of
Assertions.assertThat(Object)
+ Deprecate AssertionErrorFactory in favor of
AssertionErrorCreator
+ Deprecate catchThrowableOfType(ThrowingCallable, Class) in
favor of catchThrowableOfType(Class, ThrowingCallable)
+ Deprecate assertThat(Iterable, AssertFactory),
+ Deprecate ClassBasedNavigableIterableAssert and
ClassBasedNavigableListAssert
+ Deprecate usingComparatorForFields and remove deprecated
assertions from usingComparatorForType documentation
+ Deprecate hasCauseReference(Throwable) from Throwable
assertions
+ Deprecate org.assertj.core.annotations.Beta in favor of
org.assertj.core.annotation.Beta
+ Deprecate org.assertj.core.util.CanIgnoreReturnValue in favor
of org.assertj.core.annotation.CanIgnoreReturnValue
+ Deprecate org.assertj.core.util.CheckReturnValue in favor of
org.assertj.core.annotation.CheckReturnValue
+ Deprecate XmlStringPrettyFormatter with no replacement
* New Features
+ Support multiple AfterAssertionErrorCollected callbacks
+ Add InstanceOfAssertFactory for Set instances
+ Add doesNotContainKey and doesNotContainKeys to Guava Multimap
assertions
+ Add assertions for JDK YearMonth type
+ Add TemporalAssert type
+ Add ignoringFieldsOfTypesMatchingRegexes
+ Add fail(Throwable) and fail() variants
+ Add isPrivate to Class assertions
+ Add doesNot[Start/End]WithWhitespace methods to CharSequence
assertions
+ Add createAssert(ValueProvider) to AssertFactory
+ Add values() navigation method to AbstractMapAssert
+ Add bytes()/bytes(Charset)/bytes(String) navigation methods to
AbstractStringAssert
+ Add doesNotThrowAnyExceptionExcept to AbstractThrowableAssert
+ Add hasPermittedSubclasses to Class assertions
+ Add isUnmodifiable to Iterator assertions
+ Add actual() to access the object under test
+ Add isCompletedWithValueMatchingWithin to CompletableFuture
assertions
+ Add completesExceptionallyWithin to CompletableFuture
assertions
+ Add inBinary to CharSequence assertions
+ Support for Assertions.byLessThan(Duration) and
Assertions.within(Duration)
+ Add standard representation for CharSequence
+ Add predicate descriptions overloads to anyMatch and noneMatch
+ Add doesNotMatch(Predicate)
+ Add usingEquals accepting a BiPredicate and an optional
description to provide a custom comparison in assertions
+ Add isNotEmpty to Table assertions
* Bug Fixes
+ Preserve original order of elements when returning duplicates
on doesNotHaveDuplicates
+ Make isNotEqualTo(boolean) pass when actual is null
+ Fix isEqualTo comparison of Timestamp instances with Instant
+ Fix Instant conversion with Date assertions
+ Rebuild default date formats used to parse strings as dates
when default timezone or lenient flag changes
+ Fix Javadoc rendering on
FactoryBasedNavigableListAssert::assertThat
+ Allow ComparingNormalizedFields instances to be reused across
different assertions
+ Recursive assertion hasNoNullFields throws NPE with fields of
anonymous and local types
+ Fix incorrect mutation of actualElementsGroupedByHashCode in
recursive comparison
+ Recursive comparison ignoringFields not working properly with
maps
+ Custom representation ignored when describing expected items
not in the actual list
+ hasFieldOrPropertyWithValue swallows exceptions thrown by
getters, and reports non-existent property instead
+ satisfies() with nested assertions obscures stack trace
+ Recursive comparison fails if ignored fields are not found in
expected
+ Fix missing introspection for record accessors
+ Honor assertion description in asString()
+ Avoid InputStream manipulation when mark / reset are supported
+ NPE with custom RecursiveComparisonConfiguration on
usingRecursiveFieldByFieldElementComparator
+ Restore support for null-valued maps when ignoring fields
+ Fix StandardRepresentation regression for unquoted strings
+ Fix thread-safety in AbstractDateAssert
+ Add missing export for org.assertj.core.annotation
+ Navigation to assertj-core or guava types from assertj-guava
Javadoc site has unnecessary header
* Improvements
+ Avoid duplicating maven-javadoc-plugin configuration and CSS
files
+ Favor additionalOption entries in maven-javadoc-plugin
+ Fix typo in Javadoc
+ Improve AssertFactory Javadoc
+ Add Throwable stack trace to ShouldHaveCauseExactlyInstance
+ Fix typo
+ Add Throwable stack trace to ShouldHaveCauseInstance
+ Implement boolean assertions directly in AbstractBooleanAssert
and remove Booleans internal class
+ Remove stack trace elements triggered by AssertJ in addition
to AssertJ elements
+ Report all failing conditions when using
satisfies(allOf(Condition...))
+ Fix Unicode escapes in inUnicode() Javadoc
+ Show error differences if values were compared with equals in
recursive comparison
+ Add throwable stacktrace to ShouldNotContainCharSequence
+ Remove unused code and other minor cleanup
+ Simplify comparison strategy isLessThan and
isLessThanOrEqualTo in AbstractComparisonStrategy
+ Update AbstractCharSequenceAssert.java reference
+ Include stack trace of internal errors in all/any satisfy
assertions
+ Declare license using SPDX identifier
+ Add Class info to class loading strategy failures
+ Migrate to the Central Publisher Portal, enable snapshot
publishing
+ Annotate fail methods with custom @Contract
+ ByteBuddy in AssertJ 3.27.4 not compatible with Java 25
-------------------------------------------------------------------
Mon Sep 23 05:32:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use SOURCE_DATE_EPOCH for reproducible builds
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 24 05:36:38 UTC 2024 - Fridrich Strba <fstrba@suse.com> Fri May 24 05:36:38 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package assertj-core # spec file for package assertj-core
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2026 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
# binaries are java 8 compatible # binaries are java 8 compatible
%define __requires_exclude java-headless %define __requires_exclude java-headless
Name: assertj-core Name: assertj-core
Version: 3.25.3 Version: 3.27.7
Release: 0 Release: 0
Summary: Library of assertions similar to fest-assert Summary: Library of assertions similar to fest-assert
License: Apache-2.0 License: Apache-2.0
@@ -60,19 +60,24 @@ This package provides API documentation for %{name}.
#pom_remove_plugin -r :bnd-maven-plugin #pom_remove_plugin -r :bnd-maven-plugin
%pom_remove_plugin -r :bnd-resolver-maven-plugin %pom_remove_plugin -r :bnd-resolver-maven-plugin
%pom_remove_plugin -r :bnd-testing-maven-plugin %pom_remove_plugin -r :bnd-testing-maven-plugin
%pom_remove_plugin -r :nexus-staging-maven-plugin %pom_remove_plugin -r :central-publishing-maven-plugin
%pom_remove_plugin -r :license-maven-plugin %pom_remove_plugin -r :license-maven-plugin
%pom_remove_plugin -r :flatten-maven-plugin %pom_remove_plugin -r :flatten-maven-plugin
%pom_remove_dep -r :mockito-bom %pom_remove_dep -r :mockito-bom
%pom_remove_dep -r :junit-bom %pom_remove_dep -r :junit-bom
%pom_remove_dep -r :spring-boot-dependencies
%pom_disable_module assertj-core-kotlin assertj-tests/assertj-integration-tests %pom_disable_module assertj-core-kotlin assertj-tests/assertj-integration-tests
%pom_disable_module assertj-core-groovy assertj-tests/assertj-integration-tests %pom_disable_module assertj-core-groovy assertj-tests/assertj-integration-tests
%pom_disable_module assertj-core-spring-boot assertj-tests/assertj-integration-tests
%pom_disable_module assertj-core-osgi assertj-tests/assertj-integration-tests
%pom_add_dep org.apiguardian:apiguardian-api:1.1.2:provided %pom_add_dep org.apiguardian:apiguardian-api:1.1.2:provided
%build %build
%{mvn_build} -f -- -Dproject.build.sourceEncoding=UTF-8 -Dmaven.compiler.release=8 -Dsource=8 %{mvn_build} -f -- \
-Dproject.build.sourceEncoding=UTF-8 \
-Dmaven.compiler.release=8 -Dsource=8
%install %install
%mvn_install %mvn_install