python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
kotest equivalent to usingElementComparatorIgnoringFields from assertJ
assertJ allows you to check for element-wise list equality while ignoring user specified fields like so
assertThat(listOfObjects)
.usingElementComparatorIgnoringFields("field1", "fi...
mooglin
Votes: 0
Answers: 1
AssertJ: issue with Assertions.assertThat().usingRecursiveComparison().ignoringFields()
I'm using assertj-core:3.21.0 and JDK 17
Here is an simple example that fails. This works in JDK 16 and assertj-core:3.19.0.
@AllArgsConstructor
@Data
class Test {
...
user3908406
Votes: 0
Answers: 1
JUnit: Is there a way to assert all array values at once?
I have a map in which its values are a simple pojo.
For example (in a very loosely code):
Class Data{
int a;
Boolean b;
}
Map<Integer, Data> myMap = new HashMap<>();
Now the map is b...
dushkin
Votes: 0
Answers: 3