assertj / assertj/assertj-db

Possibility to use Condition in hasValues of row assertions

Open
#110 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
130
Forks
21
PR merge metrics
No merged PRs in 30d

Description

I would like to include condition objects when I call the hasValue method of a row assertion

```
softAssertions.assertThat(changes)
.changeOnTableWithPks(tableName, primaryKeyValue)
.isCreation()
.rowAtEndPoint()
.hasValues(1, 'Test', new HamcrestCondition<>(Matchers.greaterThan(2)));
```

Contributor guide

Open the contributing guide

Research direction

Start by locating the row assertion implementation of hasValues and the existing HamcrestCondition or Condition handling. Trace how row values are matched, then verify that the shown greaterThan condition can be accepted alongside the integer and string values and that the assertion reports success or failure correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.