|
|
@@ -256,7 +256,9 @@ class PerformanceServiceTest {
|
|
|
|
|
|
private AssessmentPeriod period() {
|
|
|
AssessmentPeriod period = new AssessmentPeriod();
|
|
|
- period.setId(1L); period.setStartDate(java.time.LocalDate.of(2026,1,1)); period.setEndDate(java.time.LocalDate.of(2026,12,31));
|
|
|
+ period.setId(1L);
|
|
|
+ period.setStartDate(java.time.LocalDate.of(2026, 1, 1));
|
|
|
+ period.setEndDate(java.time.LocalDate.of(2026, 12, 31));
|
|
|
period.setStatus(PeriodStatus.ASSESSING);
|
|
|
return period;
|
|
|
}
|
|
|
@@ -339,7 +341,8 @@ class PerformanceServiceTest {
|
|
|
|
|
|
@Test
|
|
|
void hrCanSeeAllItems() {
|
|
|
- setupPrivacyMocks(1L, 2L, 99L, "SELF_SUBMITTED", "PUBLISHED"); when(authorizationService.isHrOrAbove(99L)).thenReturn(true);
|
|
|
+ setupPrivacyMocks(1L, 2L, 99L, "SELF_SUBMITTED", "PUBLISHED");
|
|
|
+ when(authorizationService.isHrOrAbove(99L)).thenReturn(true);
|
|
|
|
|
|
ScoringDto dto = performanceService.getScoringPage(1L, 2L, 99L);
|
|
|
|
|
|
@@ -360,7 +363,7 @@ class PerformanceServiceTest {
|
|
|
assertNotNull(dto.getSelfScore(), "Self can see their self score");
|
|
|
}
|
|
|
|
|
|
- private void setupPrivacyMocks(Long periodId, Long userId, Long actorId,
|
|
|
+ private void setupPrivacyMocks(Long periodId, Long userId, Long actorId,
|
|
|
String selfStatus, String finalStatus) {
|
|
|
lenient().when(periodMapper.selectById(periodId)).thenReturn(period());
|
|
|
SysUser targetUser = user(userId, 3L);
|