Skip to content

Commit

Permalink
style: 쿠폰 및 알림 테스트 패키지 분리 (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongdosan authored Nov 15, 2023
1 parent c28a033 commit 7da9d5a
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/config
2 changes: 1 addition & 1 deletion src/main/resources/static/docs/coupon.html
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ <h3 id="_쿠폰_사용_진행_중">쿠폰 사용 (진행 중)</h3>
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-11-12 16:01:40 +0900
Last updated 2023-11-13 16:03:53 +0900
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ <h4 id="_상태코드httpstatus"><a class="link" href="#_상태코드httpstatus"
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-11-07 00:27:34 +0900
Last updated 2023-11-06 23:30:09 +0900
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.3/highlight.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/docs/notification.html
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ <h4 id="_응답" class="discrete">응답</h4>
<div id="footer">
<div id="footer-text">
Version 0.0.1-SNAPSHOT<br>
Last updated 2023-11-12 16:01:40 +0900
Last updated 2023-11-10 21:12:31 +0900
</div>
</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.moabam.api.application;
package com.moabam.api.application.coupon;

import static org.assertj.core.api.Assertions.*;
import static org.mockito.BDDMockito.*;
Expand All @@ -16,7 +16,6 @@
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;

import com.moabam.api.application.coupon.CouponService;
import com.moabam.api.domain.coupon.Coupon;
import com.moabam.api.domain.coupon.CouponType;
import com.moabam.api.domain.coupon.repository.CouponRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.moabam.api.application;
package com.moabam.api.application.notification;

import static org.assertj.core.api.Assertions.*;
import static org.mockito.BDDMockito.*;
Expand All @@ -16,7 +16,6 @@

import com.google.firebase.messaging.FirebaseMessaging;
import com.google.firebase.messaging.Message;
import com.moabam.api.application.notification.NotificationService;
import com.moabam.api.application.room.RoomService;
import com.moabam.api.domain.room.Participant;
import com.moabam.api.domain.room.repository.ParticipantSearchRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.moabam.api.domain.entity;
package com.moabam.api.domain.coupon;

import static org.assertj.core.api.Assertions.*;

Expand All @@ -7,8 +7,6 @@
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import com.moabam.api.domain.coupon.Coupon;
import com.moabam.api.domain.coupon.CouponType;
import com.moabam.global.error.exception.BadRequestException;
import com.moabam.global.error.model.ErrorMessage;
import com.moabam.support.fixture.CouponFixture;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.moabam.api.domain.entity.enums;
package com.moabam.api.domain.coupon;

import static org.assertj.core.api.Assertions.*;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import com.moabam.api.domain.coupon.CouponType;
import com.moabam.global.error.exception.NotFoundException;
import com.moabam.global.error.model.ErrorMessage;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.moabam.api.domain.repository;
package com.moabam.api.domain.coupon.repository;

import static org.assertj.core.api.Assertions.*;

Expand All @@ -15,8 +15,6 @@
import org.springframework.context.annotation.Import;

import com.moabam.api.domain.coupon.Coupon;
import com.moabam.api.domain.coupon.repository.CouponRepository;
import com.moabam.api.domain.coupon.repository.CouponSearchRepository;
import com.moabam.api.dto.coupon.CouponSearchRequest;
import com.moabam.global.config.JpaConfig;
import com.moabam.global.error.exception.NotFoundException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.moabam.api.dto;
package com.moabam.api.dto.coupon;

import static org.assertj.core.api.Assertions.*;

Expand All @@ -10,7 +10,6 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.moabam.api.dto.coupon.CreateCouponRequest;

class CreateCouponRequestTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.moabam.api.domain.repository;
package com.moabam.api.infrastructure.redis;

import static org.assertj.core.api.Assertions.*;
import static org.mockito.Mockito.*;
Expand All @@ -12,9 +12,6 @@
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;

import com.moabam.api.infrastructure.redis.NotificationRepository;
import com.moabam.api.infrastructure.redis.StringRedisRepository;

@ExtendWith(MockitoExtension.class)
class NotificationRepositoryTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.moabam.global.common.repository;
package com.moabam.api.infrastructure.redis;

import static org.assertj.core.api.Assertions.*;

Expand All @@ -11,7 +11,6 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import com.moabam.api.infrastructure.redis.StringRedisRepository;
import com.moabam.global.config.EmbeddedRedisConfig;
import com.moabam.global.config.RedisConfig;

Expand Down

0 comments on commit 7da9d5a

Please sign in to comment.