Skip to content

Commit

Permalink
fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
urio999 committed Jan 30, 2025
1 parent 1458946 commit 88dabc5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions core/src/test/java/greencity/ModelUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import greencity.dto.location.LocationDto;
import greencity.dto.location.MapBoundsDto;
import greencity.dto.place.PlaceByBoundsDto;
import greencity.dto.tag.TagDto;
import greencity.dto.todolistitem.CustomToDoListItemResponseDto;
import greencity.dto.todolistitem.ToDoListItemPostDto;
import greencity.dto.todolistitem.ToDoListItemRequestDto;
Expand Down Expand Up @@ -73,7 +72,6 @@
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
Expand Down
2 changes: 2 additions & 0 deletions service/src/main/java/greencity/utils/EventUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import greencity.entity.event.EventDateLocation;
import greencity.entity.event.EventGrade;
import lombok.experimental.UtilityClass;
import java.time.ZonedDateTime;
import java.util.List;

@UtilityClass
public class EventUtils {
public static boolean isRelevant(List<EventDateLocation> dates) {
if (dates == null || dates.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,14 @@
import greencity.ModelUtils;
import greencity.dto.event.EventResponseDto;
import greencity.entity.event.Event;
import greencity.entity.event.EventDateLocation;
import greencity.entity.event.EventGrade;
import greencity.service.CommentService;
import greencity.utils.EventUtils;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

import static greencity.ModelUtils.getEvent;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
Expand Down

0 comments on commit 88dabc5

Please sign in to comment.