Skip to content

Commit

Permalink
formatter + checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
holotsvan committed Dec 3, 2024
1 parent f27bf9c commit 3746567
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,6 @@ private void checkingEqualityDateTimeInEventDateLocationDto(List<EventDateLocati
throw new IllegalArgumentException(ErrorMessage.INVALID_DURATION_BETWEEN_START_AND_FINISH);
});
}

}

private Event findEventId(Long id) {
Expand Down
2 changes: 0 additions & 2 deletions service/src/test/java/greencity/ModelUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -3158,7 +3158,6 @@ public static SearchPlacesDto getSearchPlacesDto() {
.build();
}


public static List<EventDateLocationDto> getEventDateLocationDtoWithInvalidDuration() {
ZoneId zoneId = ZoneId.of("Europe/Kiev");

Expand All @@ -3173,5 +3172,4 @@ public static List<EventDateLocationDto> getEventDateLocationDtoWithInvalidDurat
return List.of(invalidDto1, invalidDto2);
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ void shouldThrowIllegalArgumentExceptionWhenDurationIsLessThan30Minutes() throws
List<EventDateLocationDto> eventDateLocationDtos = ModelUtils.getEventDateLocationDtoWithInvalidDuration();

Method method = EventServiceImpl.class.getDeclaredMethod(
"checkingEqualityDateTimeInEventDateLocationDto", List.class);
"checkingEqualityDateTimeInEventDateLocationDto", List.class);
method.setAccessible(true);

InvocationTargetException exception = assertThrows(InvocationTargetException.class, () -> {
Expand Down

0 comments on commit 3746567

Please sign in to comment.