assertj / assertj/assertj-db

Add toString() and equals() implementations for core domain types (Table, Row, Value, Column)

Đang mở
#324 1 bình luận 0 reaction 1 người được giao Được @VanRoy nhận Xem trên GitHub
Ngôn ngữ chính
Java
Star
130
Fork
21
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi,

for many relevant domain types like

- Table
- Row
- Value
- Column

there are currently no implementations of toString() and equals() (and, by implication, hashCode()). This is a significant blocker for making reliable assertions across different datasets and hinders test readability and diagnostics.

My current workaround is:

```
Assertions.assertThat(actualRows)
.usingElementComparator(new CustomRowComparator())
.withRepresentation(new CustomRowRepresentation())
.containsExactlyInAnyOrderElementsOf(expectedRows);
```

I would like to contribute a fix by adding consistent equals(), hashCode(), and toString() implementations for the classes above.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.