assertj / assertj/assertj-db

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

Offen
#324 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @VanRoy Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
130
Forks
21
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.