From 613deb0fac407462573ee3d2d394281bd8a06c2a Mon Sep 17 00:00:00 2001 From: github-actions <> Date: Sat, 30 Mar 2024 16:12:22 +0000 Subject: [PATCH] Google Java Format --- .../domain/notification/entity/NotificationType.java | 5 ++++- .../repository/JpaNotificationRepository.java | 4 +++- .../notification/repository/NotificationRepository.java | 1 + .../com/twtw/backend/support/exclude/ExcludeTest.java | 7 ++++--- .../java/com/twtw/backend/support/service/LoginTest.java | 9 +++++---- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/backend/src/main/java/com/twtw/backend/domain/notification/entity/NotificationType.java b/backend/src/main/java/com/twtw/backend/domain/notification/entity/NotificationType.java index 9abf87b..bedc2c7 100644 --- a/backend/src/main/java/com/twtw/backend/domain/notification/entity/NotificationType.java +++ b/backend/src/main/java/com/twtw/backend/domain/notification/entity/NotificationType.java @@ -1,5 +1,8 @@ package com.twtw.backend.domain.notification.entity; public enum NotificationType { - FRIEND_REQUEST, GROUP_REQUEST, DESTINATION_CHANGE, PLAN_REQUEST + FRIEND_REQUEST, + GROUP_REQUEST, + DESTINATION_CHANGE, + PLAN_REQUEST } diff --git a/backend/src/main/java/com/twtw/backend/domain/notification/repository/JpaNotificationRepository.java b/backend/src/main/java/com/twtw/backend/domain/notification/repository/JpaNotificationRepository.java index d8b530a..5040c97 100644 --- a/backend/src/main/java/com/twtw/backend/domain/notification/repository/JpaNotificationRepository.java +++ b/backend/src/main/java/com/twtw/backend/domain/notification/repository/JpaNotificationRepository.java @@ -1,8 +1,10 @@ package com.twtw.backend.domain.notification.repository; import com.twtw.backend.domain.notification.entity.Notification; + import org.springframework.data.jpa.repository.JpaRepository; import java.util.UUID; -public interface JpaNotificationRepository extends JpaRepository, NotificationRepository {} +public interface JpaNotificationRepository + extends JpaRepository, NotificationRepository {} diff --git a/backend/src/main/java/com/twtw/backend/domain/notification/repository/NotificationRepository.java b/backend/src/main/java/com/twtw/backend/domain/notification/repository/NotificationRepository.java index 3923892..579f893 100644 --- a/backend/src/main/java/com/twtw/backend/domain/notification/repository/NotificationRepository.java +++ b/backend/src/main/java/com/twtw/backend/domain/notification/repository/NotificationRepository.java @@ -10,5 +10,6 @@ @Repository public interface NotificationRepository { Notification save(final Notification notification); + Optional findById(final UUID id); } diff --git a/backend/src/test/java/com/twtw/backend/support/exclude/ExcludeTest.java b/backend/src/test/java/com/twtw/backend/support/exclude/ExcludeTest.java index 58df18b..fc2740d 100644 --- a/backend/src/test/java/com/twtw/backend/support/exclude/ExcludeTest.java +++ b/backend/src/test/java/com/twtw/backend/support/exclude/ExcludeTest.java @@ -1,14 +1,15 @@ package com.twtw.backend.support.exclude; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.doNothing; + import com.twtw.backend.domain.notification.messagequeue.FcmProducer; import com.twtw.backend.support.testcontainer.ContainerTestConfig; + import org.junit.jupiter.api.BeforeEach; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.test.context.ContextConfiguration; -import static org.mockito.ArgumentMatchers.any; -import static org.mockito.Mockito.doNothing; - @ContextConfiguration(initializers = ContainerTestConfig.class) public abstract class ExcludeTest { diff --git a/backend/src/test/java/com/twtw/backend/support/service/LoginTest.java b/backend/src/test/java/com/twtw/backend/support/service/LoginTest.java index d9bfa0c..7d62e8e 100644 --- a/backend/src/test/java/com/twtw/backend/support/service/LoginTest.java +++ b/backend/src/test/java/com/twtw/backend/support/service/LoginTest.java @@ -1,5 +1,9 @@ package com.twtw.backend.support.service; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.when; + import com.twtw.backend.domain.member.entity.Member; import com.twtw.backend.domain.member.repository.MemberRepository; import com.twtw.backend.domain.member.service.AuthService; @@ -7,15 +11,12 @@ import com.twtw.backend.fixture.member.MemberEntityFixture; import com.twtw.backend.support.stub.StubConfig; import com.twtw.backend.support.testcontainer.ContainerTestConfig; + import org.junit.jupiter.api.BeforeEach; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.test.context.ContextConfiguration; -import static org.mockito.ArgumentMatchers.any; -import static org.mockito.Mockito.doNothing; -import static org.mockito.Mockito.when; - @ServiceTest @ContextConfiguration( initializers = {ContainerTestConfig.class},