Skip to content

Commit

Permalink
[fix] 불필요한 줄 바꿈 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
AreSain committed Mar 26, 2024
1 parent 7d1cb52 commit 9abe011
Showing 1 changed file with 10 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public class PartyPenaltyControllerTest {
private AuthTokenProvider tokenProvider;
@Autowired
private PartyPenaltyRepository partyPenaltyRepository;

private User userTester;
private User reportedTester;
private User adminUser;
Expand Down Expand Up @@ -134,12 +133,8 @@ void testPaginationPenaltiesList() throws Exception {
@DisplayName("패널티 수정 - 204")
void testModifyAdminPenalty() throws Exception {
//given
PartyPenaltyAdminReqDto penaltyDto = new PartyPenaltyAdminReqDto(
"test_penalty",
"Test reason",
60,
reportedTester.getIntraId()
);
PartyPenaltyAdminReqDto penaltyDto = new PartyPenaltyAdminReqDto("test_penalty", "Test reason", 60,
reportedTester.getIntraId());

//when
mockMvc.perform(patch("/party/admin/penalties/{penaltyId}", testPenaltyId)
Expand All @@ -162,12 +157,8 @@ void testModifyAdminPenalty_NotFound() throws Exception {
//given
Long nonExistentPenaltyId = 999L;

PartyPenaltyAdminReqDto penaltyDto = new PartyPenaltyAdminReqDto(
"test_penalty",
"test_reason",
60,
"nonexistentIntraId"
);
PartyPenaltyAdminReqDto penaltyDto = new PartyPenaltyAdminReqDto("test_penalty", "Test reason", 60,
reportedTester.getIntraId());

//when
mockMvc.perform(patch("/party/admin/penalties/{penaltyId}", nonExistentPenaltyId)
Expand All @@ -181,12 +172,8 @@ void testModifyAdminPenalty_NotFound() throws Exception {
@DisplayName("패널티 부여 (일반적인 상황) - 201")
void testGiveAdminPenalty() throws Exception {
//given
PartyPenaltyAdminReqDto penaltyDto = new PartyPenaltyAdminReqDto(
"test_penalty",
"Test reason",
60,
userTester.getIntraId()
);
PartyPenaltyAdminReqDto penaltyDto = new PartyPenaltyAdminReqDto("test_penalty", "Test reason", 60,
userTester.getIntraId());

long penaltyCountBefore = partyPenaltyRepository.count();

Expand All @@ -206,12 +193,8 @@ void testGiveAdminPenalty() throws Exception {
@DisplayName("패널티 부여 (패널티된 유저에게 추가 패널티 부여) - 201")
void testAddAdminPenalty() throws Exception {
//given
PartyPenaltyAdminReqDto morePenaltyDto = new PartyPenaltyAdminReqDto(
"test_penalty",
"Test reason",
60,
reportedTester.getIntraId()
);
PartyPenaltyAdminReqDto morePenaltyDto = new PartyPenaltyAdminReqDto("test_penalty", "Test reason", 60,
reportedTester.getIntraId());

//when
mockMvc.perform(post("/party/admin/penalties")
Expand All @@ -231,12 +214,8 @@ void testAddAdminPenalty() throws Exception {
@DisplayName("패널티 부여 - 실패 시나리오(없는 유저) - 404")
void testAddAdminPenalty_UserNotFound() throws Exception {
//given
PartyPenaltyAdminReqDto penaltyDto = new PartyPenaltyAdminReqDto(
"test_penalty",
"Test reason",
60,
"nonexistentIntraId"
);
PartyPenaltyAdminReqDto penaltyDto = new PartyPenaltyAdminReqDto("test_penalty", "Test reason", 60,
"nonexistentIntraId");

//when
mockMvc.perform(post("/party/admin/penalties")
Expand Down

0 comments on commit 9abe011

Please sign in to comment.