assertj-db
assertj-db copied to clipboard
Possibility to use Condition in hasValues of row assertions
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)));
Hi @soezen , thanks for your report and your PR. It's a good idea. However, I think it would be better to implement this feature with different method name and implement some tests.
I can handle this, and I also plan to support Consumer in addition to Condition for many assertj-db methods.
I'll let you know quickly.
Wow, super. Yes this was just a quick implementation for something I would like to use. Thanks
On Sun, Nov 1, 2020 at 10:36 PM Julien Roy [email protected] wrote:
Hi @soezen https://github.com/soezen , thanks for your report and your PR. It a good idea. However, I think it will be better to implement this feature with other method name and implement some tests. I can handle this, and I also plan to support Consumer in addition of Condition on many assertj-db methods. I'll let you know quickly.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/assertj/assertj-db/issues/110#issuecomment-720155483, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2WGMOULU4335N7AIJBNFTSNXIFXANCNFSM4SYKSEAA .
Hi @soezen , a first implementation of hasValuesSatisfying with Condition is pushed on main.
It wil be available soon in the next release.
Sorry for the delay.