diff --git a/src/main/java/com/example/mate/domain/crawler/controller/CrawlingController.java b/src/main/java/com/example/mate/domain/crawler/controller/CrawlingController.java index 95586f0f..98c6d2d9 100644 --- a/src/main/java/com/example/mate/domain/crawler/controller/CrawlingController.java +++ b/src/main/java/com/example/mate/domain/crawler/controller/CrawlingController.java @@ -95,8 +95,8 @@ public ResponseEntity> crawlMatchesByDate( //테스트 @PostMapping("/matches/custom") public ResponseEntity crawlCustomDateMatches() { - // 9월로 가정하고 크롤링 - LocalDate customDate = LocalDate.of(2024, 9, 1); + // 3월로 가정하고 크롤링 + LocalDate customDate = LocalDate.of(2025, 3, 1); return ResponseEntity.ok(crawlingService.crawlMatchesFromCustomDate(customDate)); } diff --git a/src/main/java/com/example/mate/domain/crawler/scheduler/CrawlingScheduler.java b/src/main/java/com/example/mate/domain/crawler/scheduler/CrawlingScheduler.java index 62052f8a..345e51a4 100644 --- a/src/main/java/com/example/mate/domain/crawler/scheduler/CrawlingScheduler.java +++ b/src/main/java/com/example/mate/domain/crawler/scheduler/CrawlingScheduler.java @@ -13,7 +13,8 @@ public class CrawlingScheduler { private final CrawlingService crawlingService; - @Scheduled(cron = "0 0 9 * * *", zone = "Asia/Seoul") + // 매시 30분 + @Scheduled(cron = "0 30 * * * *", zone = "Asia/Seoul") public void morningUpdate() { log.info("Starting morning schedule update"); try { @@ -43,7 +44,7 @@ public void eveningUpdate() { } } - // 매 분 실행 자동화 테스트 (현재 off-season ) +// // 매 분 실행 자동화 테스트 (현재 off-season ) // @Scheduled(cron = "0 * * * * *", zone = "Asia/Seoul") // public void testScheduler() { // log.info("Test Scheduler is running!"); diff --git a/src/main/java/com/example/mate/domain/crawler/service/CrawlingService.java b/src/main/java/com/example/mate/domain/crawler/service/CrawlingService.java index 7ad655b0..572caecd 100644 --- a/src/main/java/com/example/mate/domain/crawler/service/CrawlingService.java +++ b/src/main/java/com/example/mate/domain/crawler/service/CrawlingService.java @@ -48,7 +48,7 @@ public CrawlingStatusResponse crawlAllCurrentMatches() { try { webDriver = webDriverFactory.getObject(); - LocalDate now = LocalDate.now(); + LocalDate now = LocalDate.now().withYear(2025).withMonth(3); // 2025년 3월로 설정 // 현재 월과 다음 달의 데이터 크롤링 for (int monthOffset = 0; monthOffset < 2; monthOffset++) { diff --git a/src/test/java/com/example/mate/MateApplicationTests.java b/src/test/java/com/example/mate/MateApplicationTests.java index 545ece3c..5af75f44 100644 --- a/src/test/java/com/example/mate/MateApplicationTests.java +++ b/src/test/java/com/example/mate/MateApplicationTests.java @@ -5,13 +5,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.test.context.SpringBootTest; -@SpringBootTest(properties = { - "jwt.secret_key=testsecretkey12345678901234567890", - "oauth.naver.client-id=test_client_id", - "oauth.naver.redirect-uri=http://localhost:8080/callback", - "oauth.naver.client-secret=test_client_secret", - "openweather.api.key=test_api_key" -}) +@SpringBootTest @EnableConfigurationProperties(OAuthConfig.class) class MateApplicationTests { diff --git a/src/test/java/com/example/mate/domain/auth/integration/NaverAuthIntegrationTest.java b/src/test/java/com/example/mate/domain/auth/integration/NaverAuthIntegrationTest.java index 0865a7d8..04cb139b 100644 --- a/src/test/java/com/example/mate/domain/auth/integration/NaverAuthIntegrationTest.java +++ b/src/test/java/com/example/mate/domain/auth/integration/NaverAuthIntegrationTest.java @@ -39,8 +39,6 @@ public class NaverAuthIntegrationTest { @Autowired private RestTemplate restTemplate; - @MockBean - private JwtUtil jwtUtil; @BeforeEach void setUp() { diff --git a/src/test/java/com/example/mate/domain/goodsChat/integration/GoodsChatIntegrationTest.java b/src/test/java/com/example/mate/domain/goodsChat/integration/GoodsChatIntegrationTest.java index 5ba5fe5a..9a4c8b57 100644 --- a/src/test/java/com/example/mate/domain/goodsChat/integration/GoodsChatIntegrationTest.java +++ b/src/test/java/com/example/mate/domain/goodsChat/integration/GoodsChatIntegrationTest.java @@ -68,8 +68,6 @@ public class GoodsChatIntegrationTest { @Autowired private ObjectMapper objectMapper; @Autowired private JdbcTemplate jdbcTemplate; - @MockBean - private JwtUtil jwtUtil; private Member seller; private Member buyer; diff --git a/src/test/java/com/example/mate/domain/goodsPost/integration/GoodsPostIntegrationTest.java b/src/test/java/com/example/mate/domain/goodsPost/integration/GoodsPostIntegrationTest.java index 2d554e66..b85d0113 100644 --- a/src/test/java/com/example/mate/domain/goodsPost/integration/GoodsPostIntegrationTest.java +++ b/src/test/java/com/example/mate/domain/goodsPost/integration/GoodsPostIntegrationTest.java @@ -60,8 +60,6 @@ public class GoodsPostIntegrationTest { private Member member; private GoodsPost goodsPost; - @MockBean - private JwtUtil jwtUtil; @BeforeEach void setUp() { diff --git a/src/test/java/com/example/mate/domain/match/integration/MatchIntegrationTest.java b/src/test/java/com/example/mate/domain/match/integration/MatchIntegrationTest.java index e134fcae..ff8a1583 100644 --- a/src/test/java/com/example/mate/domain/match/integration/MatchIntegrationTest.java +++ b/src/test/java/com/example/mate/domain/match/integration/MatchIntegrationTest.java @@ -66,8 +66,6 @@ class MatchIntegrationTest { @Autowired private ObjectMapper objectMapper; - @MockBean - private JwtUtil jwtUtil; @BeforeEach void setUp() { diff --git a/src/test/java/com/example/mate/domain/match/integration/TeamRecordIntegrationTest.java b/src/test/java/com/example/mate/domain/match/integration/TeamRecordIntegrationTest.java index a8dba765..8b1d88de 100644 --- a/src/test/java/com/example/mate/domain/match/integration/TeamRecordIntegrationTest.java +++ b/src/test/java/com/example/mate/domain/match/integration/TeamRecordIntegrationTest.java @@ -36,9 +36,6 @@ void setUp() { teamRecordRepository.deleteAll(); } - @MockBean - private JwtUtil jwtUtil; - @Nested @DisplayName("팀 순위 조회") class GetTeamRankings { diff --git a/src/test/java/com/example/mate/domain/mate/integration/MateIntegrationTest.java b/src/test/java/com/example/mate/domain/mate/integration/MateIntegrationTest.java index 8f3d4a66..a988d5f6 100644 --- a/src/test/java/com/example/mate/domain/mate/integration/MateIntegrationTest.java +++ b/src/test/java/com/example/mate/domain/mate/integration/MateIntegrationTest.java @@ -65,9 +65,6 @@ public class MateIntegrationTest { @Autowired private JdbcTemplate jdbcTemplate; - @MockBean - private JwtUtil jwtUtil; - // 테스트에서 공통으로 사용할 객체들 private Member testMember; private Match futureMatch; diff --git a/src/test/java/com/example/mate/domain/mate/integration/MateStatusIntegrationTest.java b/src/test/java/com/example/mate/domain/mate/integration/MateStatusIntegrationTest.java index 2ba68d03..23603f3e 100644 --- a/src/test/java/com/example/mate/domain/mate/integration/MateStatusIntegrationTest.java +++ b/src/test/java/com/example/mate/domain/mate/integration/MateStatusIntegrationTest.java @@ -83,9 +83,6 @@ public class MateStatusIntegrationTest { private MatePost completedPost; private MatePost closedPost; - @MockBean - private JwtUtil jwtUtil; - @BeforeEach void setUp() { // 기존 데이터 정리 diff --git a/src/test/java/com/example/mate/domain/member/integration/FollowIntegrationTest.java b/src/test/java/com/example/mate/domain/member/integration/FollowIntegrationTest.java index babdba53..41399f41 100644 --- a/src/test/java/com/example/mate/domain/member/integration/FollowIntegrationTest.java +++ b/src/test/java/com/example/mate/domain/member/integration/FollowIntegrationTest.java @@ -8,10 +8,12 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import com.example.mate.common.config.S3Config; import com.example.mate.common.error.ErrorCode; import com.example.mate.config.WithAuthMember; import com.example.mate.common.security.util.JwtUtil; import com.example.mate.domain.constant.Gender; +import com.example.mate.domain.file.FileService; import com.example.mate.domain.member.entity.Follow; import com.example.mate.domain.member.entity.Member; import com.example.mate.domain.member.repository.FollowRepository; @@ -44,9 +46,6 @@ public class FollowIntegrationTest { @Autowired private MemberRepository memberRepository; - @MockBean - private JwtUtil jwtUtil; - @Autowired private JdbcTemplate jdbcTemplate; diff --git a/src/test/java/com/example/mate/domain/member/integration/MemberIntegrationTest.java b/src/test/java/com/example/mate/domain/member/integration/MemberIntegrationTest.java index 65048612..8e2411e4 100644 --- a/src/test/java/com/example/mate/domain/member/integration/MemberIntegrationTest.java +++ b/src/test/java/com/example/mate/domain/member/integration/MemberIntegrationTest.java @@ -280,7 +280,7 @@ private MemberInfoUpdateRequest createMemberInfoUpdateRequest() { .memberId(member.getId()) .build(); } - + @Nested @DisplayName("자체 회원 가입") class Join { diff --git a/src/test/java/com/example/mate/domain/member/integration/ProfileIntegrationTest.java b/src/test/java/com/example/mate/domain/member/integration/ProfileIntegrationTest.java index e7401a26..14d6b41f 100644 --- a/src/test/java/com/example/mate/domain/member/integration/ProfileIntegrationTest.java +++ b/src/test/java/com/example/mate/domain/member/integration/ProfileIntegrationTest.java @@ -92,9 +92,6 @@ public class ProfileIntegrationTest { @Autowired private ObjectMapper objectMapper; - @MockBean - private JwtUtil jwtUtil; - private Member member1; private Member member2; private Member member3;