assertj / assertj/assertj-db

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

Aperta
#324 1 commento 0 reazioni 1 assegnatario Rivendicata da @VanRoy Vedi su GitHub
Lingua principale
Java
Stelle
130
Fork
21
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.