introduce-booking-module #41

Merged
hsh-michaelhoennig merged 21 commits from introduce-booking-module into master 2024-04-16 11:21:35 +02:00
2 changed files with 3 additions and 12 deletions
Showing only changes of commit 2db91e7816 - Show all commits

View File

@ -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

View File

@ -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