assertj / assertj/assertj-db

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

Abierto
#324 1 comentario 0 reacciones 1 asignado Reclamado por @VanRoy Ver en GitHub
Lenguaje dominante
Java
Estrellas
130
Forks
21
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.