assertj / assertj/assertj-db

`containsAtLeastValues` for column assertions

Offen
#38 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Java
Sterne
130
Forks
21
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Today we can assert that a column has **exactly** some values :

```
assertThat(table).column("name").containsValues("Hewson",
"Evans",
"Clayton",
"Mullen");
```

If the table contains more rows / values, the assertion fails.

But it would be nice to have more flexibility and check if the column contains **at least** the given values.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start at the existing column assertion entry point, containsValues, and review how exact value matching is tested. Add the corresponding containsAtLeastValues behavior for columns and ensure tests cover columns with additional rows while retaining the existing exact assertion behavior.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
databases, testing
Issue-Typ
Feature
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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