Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

커넥션풀 관련 설정 추가 + 회원탈퇴시 fk 관련 삭제 로직 추가 #784

Merged
merged 7 commits into from
Oct 19, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;

Expand Down Expand Up @@ -90,12 +89,14 @@ void getReportAlarmActions() {

// when
List<ReportActionAlarmResponse> results = RestAssuredMockMvc
.given().log().all()
.queryParam("page", 0)
.when().get("/alarms/report?page=0")
.then().log().all()
.status(HttpStatus.OK)
.extract()
.as(new ParameterizedTypeReference<List<ReportActionAlarmResponse>>() {
}.getType());
.as(new TypeRef<>() {
});
Comment on lines -97 to +99
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍


// then
assertThat(results.get(0)).isEqualTo(response);
Expand All @@ -117,6 +118,7 @@ void getReportAlarmAction() {

// when
ReportActionResponse result = RestAssuredMockMvc
.given().log().all()
.when().get("/alarms/report/{id}", 1)
.then().log().all()
.status(HttpStatus.OK)
Expand Down