assertj
assertj copied to clipboard
AssertJ is a library providing easy to use rich typed assertions
1. Added the following methods for the MapAssert: - containsKeys(Iterable) - containsValues(Iterable) - containsOnlyValues(Object[]) - containsOnlyValues(Iterable) - doesNotContainKeys(Iterable) - doesNotContainValues(Object[]) - doesNotContainValues(Iterable) 2. Fixed the issue #2428
When registering custom formatter in Groovy and using the interpolated string we are getting `ClassCastException` on [StandarardRepresentation:311](https://github.com/assertj/assertj/blob/main/assertj-core/src/main/java/org/assertj/core/presentation/StandardRepresentation.java#L311) because we are trying to cast `GStringImpl` to `String`. Here is the simple...
As [#2509 (comment)](https://github.com/assertj/assertj-core/issues/2509#issuecomment-1057395093) mentioned, several methods are added as the shortcuts for `extracting` boolean and numbers. #### Check List: * Closes #2520 * Unit tests : YES * Javadoc with...
#### Feature summary Greetings and salutations, `RecursiveComparisonAssert` supports both plain string field names and regex'd field names with the methods `ignoringFields()` and `ignoringFieldsMatchingRegexes()`. However, I would like to have this...
#### Summary When comparing values, AssertJ takes a very strong opinion that the objects are defined by their _fields_, which is contrary to general Java best practice and makes testing...
#### Summary The recursive comparison would benefit from a clear introspection strategy when gathering the field to compare and getting their values. The recursive comparison is a bit inconsistent, it...
#### Summary We tests assertj core with integration tests to validate junit 4, testng and osgi integration, this works but is more a workaround to simulate different environments. A better...
Here is a brief implementation of POC for #2189 and is far from being complete. I am using a test example from #2149 to show that it is working. @joel-costigliola,...
#### Feature summary I am currently writing a library that enables the writing of integration tests that run Java annotation processors and invokes the compiler. Part of this is allowing...
Fix #2395 Added two lines to the error message from `containsSubsequence`. Only in `Iterables.containsSubsequence`. `Arrays.containsSubsequence` is working with `Object` and that would be more work. New error message looks like...