fixing formatting: sure is fun
All checks were successful
Format / formatting (push) Successful in 6s
Build / build (push) Successful in 40s
CI / build (push) Successful in 10s

This commit is contained in:
MAILLAL Anas 2025-04-22 09:51:31 +02:00
parent 5edcf9ffc8
commit 8403bc0592
2 changed files with 10 additions and 13 deletions

View File

@ -52,7 +52,8 @@ public class EntrepreneurApi {
@DeleteMapping("/entrepreneur/sectionCells/{sectionCellId}") @DeleteMapping("/entrepreneur/sectionCells/{sectionCellId}")
public void removeSectionCell( public void removeSectionCell(
@PathVariable Long sectionCellId, @AuthenticationPrincipal Jwt principal) { @PathVariable Long sectionCellId, @AuthenticationPrincipal Jwt principal) {
entrepreneurApiService.removeSectionCell(sectionCellId, principal.getClaimAsString("email")); entrepreneurApiService.removeSectionCell(
sectionCellId, principal.getClaimAsString("email"));
} }
/** /**

View File

@ -121,8 +121,7 @@ public class SharedApiServiceTest {
// Assuming staticUnauthorizedMail is an entrepreneur NOT linked to staticAuthorizedProject // Assuming staticUnauthorizedMail is an entrepreneur NOT linked to staticAuthorizedProject
// or staticUnauthorizedProject: // or staticUnauthorizedProject:
when(mockUtilsService.isAllowedToCheckProject(eq(staticUnauthorizedMail), anyLong())) when(mockUtilsService.isAllowedToCheckProject(eq(staticUnauthorizedMail), anyLong()))
.thenReturn( .thenReturn(false); // Unauthorized entrepreneur NOT allowed for ANY project ID by
false); // Unauthorized entrepreneur NOT allowed for ANY project ID by
// default // default
// Add more specific mock setups here if needed for entrepreneur tests // Add more specific mock setups here if needed for entrepreneur tests
@ -626,8 +625,7 @@ public class SharedApiServiceTest {
cell -> cell ->
projectAppointmentsList.addAll( projectAppointmentsList.addAll(
sectionCellService.getAppointmentsBySectionCellId( sectionCellService.getAppointmentsBySectionCellId(
cell cell.getIdSectionCell()))); // Get appointments for
.getIdSectionCell()))); // Get appointments for
// those cells // those cells
Optional<Appointment> createdAppointmentOpt = Optional<Appointment> createdAppointmentOpt =
@ -944,9 +942,7 @@ public class SharedApiServiceTest {
.anyMatch( .anyMatch(
a -> a ->
a.getIdAppointment() a.getIdAppointment()
.equals( .equals(otherApp.getIdAppointment()))); // Ensure
otherApp
.getIdAppointment()))); // Ensure
// appointment from other project is not included // appointment from other project is not included
} }
} }