refactor to use Instant instead of LocalDateTime
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2026-01-07 23:56:50 +01:00
parent bda244a2e8
commit e88d651c71
15 changed files with 55 additions and 52 deletions
@@ -9,7 +9,7 @@ import org.springframework.boot.jdbc.EmbeddedDatabaseConnection;
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import java.time.LocalDateTime;
import java.time.Instant;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
@@ -34,13 +34,13 @@ public class FriendshipRepositoryTests {
.user(user1)
.friend(user2)
.status(FriendShipStatus.PENDING)
.createdAt(LocalDateTime.now())
.createdAt(Instant.now())
.build();
Friendship friendshipReverse = Friendship.builder()
.user(user2)
.friend(user1)
.status(FriendShipStatus.REQUESTED)
.createdAt(LocalDateTime.now())
.createdAt(Instant.now())
.build();
// Act