Skip to content

Commit

Permalink
style: spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomo committed Jan 10, 2024
1 parent 49fffae commit a40a9bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.depromeet.global.common.response;

import com.depromeet.global.error.ErrorResponse;

import java.time.LocalDateTime;

public record GlobalResponse(boolean success, int status, Object data, LocalDateTime timestamp) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@
import com.depromeet.global.common.response.GlobalResponse;
import com.depromeet.global.error.exception.CustomException;
import com.depromeet.global.error.exception.ErrorCode;
import com.fasterxml.jackson.databind.ObjectMapper;
import jakarta.validation.ConstraintViolationException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.HttpStatusCode;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.FieldError;
import org.springframework.web.HttpRequestMethodNotSupportedException;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind.annotation.ExceptionHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ private Slice<MissionFindResponse> checkLastPage(
perform.andExpect(status().isBadRequest())
.andExpect(jsonPath("$.success").value(false))
.andExpect(jsonPath("$.status").value(HttpStatus.BAD_REQUEST.value()))
.andExpect(jsonPath("$.data.errorClassName").value("MethodArgumentNotValidException"))
.andExpect(
jsonPath("$.data.errorClassName").value("MethodArgumentNotValidException"))
.andExpect(jsonPath("$.data.message").value("이름은 비워둘 수 없습니다."))
.andDo(print());
}
Expand Down Expand Up @@ -261,7 +262,8 @@ private Slice<MissionFindResponse> checkLastPage(
perform.andExpect(status().isBadRequest())
.andExpect(jsonPath("$.success").value(false))
.andExpect(jsonPath("$.status").value(HttpStatus.BAD_REQUEST.value()))
.andExpect(jsonPath("$.data.errorClassName").value("MethodArgumentNotValidException"))
.andExpect(
jsonPath("$.data.errorClassName").value("MethodArgumentNotValidException"))
.andExpect(jsonPath("$.data.message").value("이름은 비워둘 수 없습니다."))
.andDo(print());
}
Expand Down

0 comments on commit a40a9bc

Please sign in to comment.