assertj-db icon indicating copy to clipboard operation
assertj-db copied to clipboard

BLOB column always shows up in Changes

Open gonozalviii opened this issue 1 month ago • 1 comments

I have a Spring Boot test running against an H2. I modify a number(2) and a date column during my test.

When I run hasModifiedColumns(...) on my change, it always fails, because it thinks a BLOB column was also modified.

When I check the BLOB column with columnAmongTheModifiedOnes(...).hasValues(start, end) it says that end and start are the same.

I think the issues is, that Changes.getIndexesOfModifiedColumns() uses normal Object equals on every value (!objectAtStartPoint.equals(objectAtEndPoint))). This does not work for byte arrays.

The implementation in the Values class Values.areEqual(Value value, Object expected) on the other hand seems to be correct.

gonozalviii avatar Jan 05 '26 14:01 gonozalviii