assertj / assertj/assertj-db

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

オープン
#324 コメント 1 件 リアクション 0 件 担当者 1 名 @VanRoy が担当を希望しています GitHub で見る
主要言語
Java
スター
130
フォーク
21
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。