Skip to content

Commit

Permalink
chore: 테스트 컨트롤러 비활성화
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim0914 committed Jan 22, 2024
1 parent 3e8c068 commit 0bee745
Showing 1 changed file with 12 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package com.official.pium.admin.ui;

import com.official.pium.admin.service.TestService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

Expand All @@ -12,29 +9,23 @@
@RequestMapping("/test")
public class TestController {

/**
* 1. 모든 알림 이벤트를 단일 스레드로 처리하는 API 2. 모든 알림 이벤트를 각각의 스레드로 처리하는 API
*
* @return
*/

private final TestService testService;
// private final TestService testService;

// @GetMapping("/notifications")
// public ResponseEntity<String> notificationTest() {
// testService.sendWaterNotificationTest();
// return ResponseEntity.ok("알림 기능 테스트 성공");
// }

@GetMapping("/notifications/ramp")
public ResponseEntity<String> notificationRampTest() {
testService.sendWaterNotificationAsyncRampTest();
return ResponseEntity.ok("비동기 알림 기능 테스트 램프업 성공");
}

@GetMapping("/notifications/async")
public ResponseEntity<String> notificationAsyncTest() {
testService.sendWaterNotificationAsyncTest();
return ResponseEntity.ok("비동기 알림 기능 테스트 성공");
}
// @GetMapping("/notifications/ramp")
// public ResponseEntity<String> notificationRampTest() {
// testService.sendWaterNotificationAsyncRampTest();
// return ResponseEntity.ok("비동기 알림 기능 테스트 램프업 성공");
// }
//
// @GetMapping("/notifications/async")
// public ResponseEntity<String> notificationAsyncTest() {
// testService.sendWaterNotificationAsyncTest();
// return ResponseEntity.ok("비동기 알림 기능 테스트 성공");
// }
}

0 comments on commit 0bee745

Please sign in to comment.