From 2db91e7816499d8dc9622cf01a6b68f0daea5790 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Sat, 13 Apr 2024 14:53:14 +0200 Subject: [PATCH] cleanup --- .../item/HsBookingItemEntityPatcherUnitTest.java | 4 ++-- .../item/HsBookingItemRepositoryIntegrationTest.java | 11 +---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/booking/item/HsBookingItemEntityPatcherUnitTest.java b/src/test/java/net/hostsharing/hsadminng/hs/booking/item/HsBookingItemEntityPatcherUnitTest.java index 3f2f426d..8bebf69f 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/booking/item/HsBookingItemEntityPatcherUnitTest.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/booking/item/HsBookingItemEntityPatcherUnitTest.java @@ -70,8 +70,8 @@ class HsBookingItemEntityPatcherUnitTest extends PatchUnitTestBase< } @Override - protected HsBookingItemEntityPatcher createPatcher(final HsBookingItemEntity sepaMandate) { - return new HsBookingItemEntityPatcher(sepaMandate); + protected HsBookingItemEntityPatcher createPatcher(final HsBookingItemEntity bookingItem) { + return new HsBookingItemEntityPatcher(bookingItem); } @Override diff --git a/src/test/java/net/hostsharing/hsadminng/hs/booking/item/HsBookingItemRepositoryIntegrationTest.java b/src/test/java/net/hostsharing/hsadminng/hs/booking/item/HsBookingItemRepositoryIntegrationTest.java index ea3558fd..518a0f6b 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/booking/item/HsBookingItemRepositoryIntegrationTest.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/booking/item/HsBookingItemRepositoryIntegrationTest.java @@ -164,7 +164,7 @@ class HsBookingItemRepositoryIntegrationTest extends ContextBasedTestWithCleanup @Test public void normalUser_canViewOnlyRelatedBookingItems() { // given: - context("bankaccount-admin@FirstGmbH.example.com"); + context("person-FirbySusan@example.com"); final var debitorUuid = debitorRepo.findDebitorByDebitorNumber(1000111).stream().findAny().orElseThrow().getUuid(); // when: @@ -212,15 +212,6 @@ class HsBookingItemRepositoryIntegrationTest extends ContextBasedTestWithCleanup assertThat(found).isNotEmpty().get().isNotSameAs(saved) .extracting(Object::toString).isEqualTo(saved.toString()); } - - private void assertThatBookingItemIsVisibleForUserWithRole( - final HsBookingItemEntity entity, - final String assumedRoles) { - jpaAttempt.transacted(() -> { - context("superuser-alex@hostsharing.net", assumedRoles); - assertThatBookingItemActuallyInDatabase(entity); - }).assertSuccessful(); - } } @Nested