From 614d9d6eb98032bb38274afb2faa120a468cd30f Mon Sep 17 00:00:00 2001 From: Davide D'Alto Date: Tue, 31 Oct 2023 11:13:51 +0100 Subject: [PATCH] [#36582] Minor clean up in TransactionalUniAsserterTest Use method reference where possible --- .../it/panache/reactive/TransactionalUniAsserterTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/TransactionalUniAsserterTest.java b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/TransactionalUniAsserterTest.java index 4f6abb0de637b..e04ce655b113f 100644 --- a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/TransactionalUniAsserterTest.java +++ b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/TransactionalUniAsserterTest.java @@ -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"));