Skip to content

Commit

Permalink
[quarkusio#36582] Minor clean up in TransactionalUniAsserterTest
Browse files Browse the repository at this point in the history
Use method reference where possible
  • Loading branch information
DavideD committed Oct 31, 2023
1 parent 05dce27 commit 614d9d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ public class TransactionalUniAsserterTest {
@Test
public void testTransactionalUniAsserter(TransactionalUniAsserter asserter) {
assertNotNull(asserter);
asserter.assertThat(() -> Panache.currentTransaction(), transaction -> {
asserter.assertThat(Panache::currentTransaction, transaction -> {
assertNotNull(transaction);
assertFalse(transaction.isMarkedForRollback());
asserter.putData("tx", transaction);
});
asserter.assertThat(() -> Panache.currentTransaction(), transaction -> {
asserter.assertThat(Panache::currentTransaction, transaction -> {
assertNotNull(transaction);
assertFalse(transaction.isMarkedForRollback());
assertNotEquals(transaction, asserter.getData("tx"));
Expand Down

0 comments on commit 614d9d6

Please sign in to comment.