From 67aea30ea5d94aeddd2841002779005c1656e33b Mon Sep 17 00:00:00 2001 From: Seungho Date: Mon, 22 Jul 2024 19:39:34 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=B8=EC=82=AC=EC=9A=A9=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cassdio/common/PackageConstants.java | 6 +++++ .../cassdio/common/error/BaseException.java | 24 +++++-------------- .../cassdio/common/error/ErrorCode.java | 6 +++++ .../hakdang/cassdio/common/utils/Jsons.java | 6 +++++ .../core/domain/cluster/ClusterException.java | 5 ++-- .../keyspace/ClusterKeyspaceException.java | 5 ++-- .../keyspace/table/ClusterTableException.java | 5 ++-- .../keyspace/udt/ClusterUDTTypeException.java | 5 ++-- .../domain/cluster/ClusterConnectionTest.java | 5 ++-- .../ClusterQueryCommanderArgsTest.java | 5 ++-- .../keyspace/table/column/ColumnKindTest.java | 5 ++-- .../udt/ClusterUDTTypeGetCommanderTest.java | 5 ++-- .../udt/ClusterUDTTypeListCommanderTest.java | 5 ++-- .../web/common/dto/response/ApiResponse.java | 24 ++++--------------- .../web/config/ControllerExceptionAdvice.java | 14 +++++------ .../cassdio/web/config/JsonConfig.java | 6 +++++ .../web/config/WebDataBinderAdvice.java | 6 +++++ .../cassdio/web/config/WebMvcConfig.java | 2 ++ .../cassdio/web/route/cluster/ClusterApi.java | 10 ++++---- .../cluster/keyspace/ClusterKeyspaceApi.java | 4 ++-- .../keyspace/table/ClusterTableReader.java | 6 +---- .../cluster/query/ClusterQueryRequest.java | 2 -- .../cassdio/web/route/BootstrapApiTest.java | 6 +++++ 23 files changed, 80 insertions(+), 87 deletions(-) diff --git a/cassdio-core/src/main/java/kr/hakdang/cassdio/common/PackageConstants.java b/cassdio-core/src/main/java/kr/hakdang/cassdio/common/PackageConstants.java index 1b0efbbc..8a73444f 100644 --- a/cassdio-core/src/main/java/kr/hakdang/cassdio/common/PackageConstants.java +++ b/cassdio-core/src/main/java/kr/hakdang/cassdio/common/PackageConstants.java @@ -3,6 +3,12 @@ import lombok.AccessLevel; import lombok.NoArgsConstructor; +/** + * PackageConstants + * + * @author seungh0 + * @since 2024-07-01 + */ @NoArgsConstructor(access = AccessLevel.PRIVATE) public class PackageConstants { diff --git a/cassdio-core/src/main/java/kr/hakdang/cassdio/common/error/BaseException.java b/cassdio-core/src/main/java/kr/hakdang/cassdio/common/error/BaseException.java index 2aea16f7..dec9bfe6 100644 --- a/cassdio-core/src/main/java/kr/hakdang/cassdio/common/error/BaseException.java +++ b/cassdio-core/src/main/java/kr/hakdang/cassdio/common/error/BaseException.java @@ -2,37 +2,25 @@ import lombok.Getter; -import java.util.Collections; -import java.util.List; - +/** + * BaseException + * + * @author seungh0 + * @since 2024-07-01 + */ @Getter public abstract class BaseException extends RuntimeException { private final ErrorCode errorCode; - private final List reasons; protected BaseException(String message, ErrorCode errorCode) { super(message); this.errorCode = errorCode; - this.reasons = Collections.emptyList(); } protected BaseException(String message, ErrorCode errorCode, Throwable cause) { super(message, cause); this.errorCode = errorCode; - this.reasons = Collections.emptyList(); - } - - protected BaseException(String message, ErrorCode errorCode, List reasons) { - super(message); - this.errorCode = errorCode; - this.reasons = reasons; - } - - protected BaseException(String message, ErrorCode errorCode, Throwable cause, List reasons) { - super(message, cause); - this.errorCode = errorCode; - this.reasons = reasons; } } diff --git a/cassdio-core/src/main/java/kr/hakdang/cassdio/common/error/ErrorCode.java b/cassdio-core/src/main/java/kr/hakdang/cassdio/common/error/ErrorCode.java index d722b9ab..b34e8b03 100644 --- a/cassdio-core/src/main/java/kr/hakdang/cassdio/common/error/ErrorCode.java +++ b/cassdio-core/src/main/java/kr/hakdang/cassdio/common/error/ErrorCode.java @@ -2,6 +2,12 @@ import lombok.Getter; +/** + * ErrorCode + * + * @author seungh0 + * @since 2024-07-01 + */ @Getter public enum ErrorCode { diff --git a/cassdio-core/src/main/java/kr/hakdang/cassdio/common/utils/Jsons.java b/cassdio-core/src/main/java/kr/hakdang/cassdio/common/utils/Jsons.java index 2e92b7e1..3eca8137 100644 --- a/cassdio-core/src/main/java/kr/hakdang/cassdio/common/utils/Jsons.java +++ b/cassdio-core/src/main/java/kr/hakdang/cassdio/common/utils/Jsons.java @@ -11,6 +11,12 @@ import lombok.AccessLevel; import lombok.NoArgsConstructor; +/** + * Jsons + * + * @author seungh0 + * @since 2024-07-01 + */ @NoArgsConstructor(access = AccessLevel.PRIVATE) public class Jsons { diff --git a/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/ClusterException.java b/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/ClusterException.java index c80f80eb..5436f72e 100644 --- a/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/ClusterException.java +++ b/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/ClusterException.java @@ -6,9 +6,8 @@ /** * ClusterException * - * @author Seungho Kang (will.seungho@webtoonscorp.com) - * @version 1.0.0 - * @since 2024. 07. 07. + * @author seungh0 + * @since 2024-07-07 */ public class ClusterException { diff --git a/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/ClusterKeyspaceException.java b/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/ClusterKeyspaceException.java index 9a0a0a0f..06142cf6 100644 --- a/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/ClusterKeyspaceException.java +++ b/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/ClusterKeyspaceException.java @@ -6,9 +6,8 @@ /** * ClusterKeyspaceException * - * @author Seungho Kang (will.seungho@webtoonscorp.com) - * @version 1.0.0 - * @since 2024. 07. 07. + * @author seungh0 + * @since 2024-07-07 */ public class ClusterKeyspaceException { diff --git a/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/table/ClusterTableException.java b/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/table/ClusterTableException.java index 77069452..7b6726c9 100644 --- a/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/table/ClusterTableException.java +++ b/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/table/ClusterTableException.java @@ -6,9 +6,8 @@ /** * ClusterTableException * - * @author Seungho Kang (will.seungho@webtoonscorp.com) - * @version 1.0.0 - * @since 2024. 07. 07. + * @author seungh0 + * @since 2024-07-07 */ public class ClusterTableException { diff --git a/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/udt/ClusterUDTTypeException.java b/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/udt/ClusterUDTTypeException.java index a068c5c7..89ae01bc 100644 --- a/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/udt/ClusterUDTTypeException.java +++ b/cassdio-core/src/main/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/udt/ClusterUDTTypeException.java @@ -6,9 +6,8 @@ /** * ClusterUDTTypeException * - * @author Seungho Kang (will.seungho@webtoonscorp.com) - * @version 1.0.0 - * @since 2024. 07. 07. + * @author seungh0 + * @since 2024-07-07 */ public class ClusterUDTTypeException { diff --git a/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/ClusterConnectionTest.java b/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/ClusterConnectionTest.java index f3381abc..acf2e6f9 100644 --- a/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/ClusterConnectionTest.java +++ b/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/ClusterConnectionTest.java @@ -11,9 +11,8 @@ /** * ClusterConnectionTest * - * @author Seungho Kang (will.seungho@webtoonscorp.com) - * @version 1.0.0 - * @since 2024. 07. 07. + * @author seungh0 + * @since 2024-07-07 */ class ClusterConnectionTest { diff --git a/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/ClusterQueryCommanderArgsTest.java b/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/ClusterQueryCommanderArgsTest.java index e6f2dc60..4a041597 100644 --- a/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/ClusterQueryCommanderArgsTest.java +++ b/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/ClusterQueryCommanderArgsTest.java @@ -8,9 +8,8 @@ /** * ClusterQueryCommanderArgsTest * - * @author Seungho Kang (will.seungho@webtoonscorp.com) - * @version 1.0.0 - * @since 2024. 07. 07. + * @author seungh0 + * @since 2024-07-07 */ class ClusterQueryCommanderArgsTest { diff --git a/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/table/column/ColumnKindTest.java b/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/table/column/ColumnKindTest.java index 47bdae35..bd7cf9ff 100644 --- a/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/table/column/ColumnKindTest.java +++ b/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/table/column/ColumnKindTest.java @@ -7,9 +7,8 @@ /** * ColumnKindTest * - * @author Seungho Kang (will.seungho@webtoonscorp.com) - * @version 1.0.0 - * @since 2024. 07. 07. + * @author seungh0 + * @since 2024-07-07 */ class ColumnKindTest { diff --git a/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/udt/ClusterUDTTypeGetCommanderTest.java b/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/udt/ClusterUDTTypeGetCommanderTest.java index 9b470632..ee6d1136 100644 --- a/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/udt/ClusterUDTTypeGetCommanderTest.java +++ b/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/udt/ClusterUDTTypeGetCommanderTest.java @@ -12,9 +12,8 @@ /** * ClusterUDTTypeGetCommanderTest * - * @author Seungho Kang (will.seungho@webtoonscorp.com) - * @version 1.0.0 - * @since 2024. 07. 07. + * @author seungh0 + * @since 2024-07-07 */ class ClusterUDTTypeGetCommanderTest extends IntegrationTest { diff --git a/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/udt/ClusterUDTTypeListCommanderTest.java b/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/udt/ClusterUDTTypeListCommanderTest.java index a5c1b672..9e0fe0c4 100644 --- a/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/udt/ClusterUDTTypeListCommanderTest.java +++ b/cassdio-core/src/test/java/kr/hakdang/cassdio/core/domain/cluster/keyspace/udt/ClusterUDTTypeListCommanderTest.java @@ -10,9 +10,8 @@ /** * ClusterUDTTypeListCommanderTest * - * @author Seungho Kang (will.seungho@webtoonscorp.com) - * @version 1.0.0 - * @since 2024. 07. 07. + * @author seungh0 + * @since 2024-07-07 */ class ClusterUDTTypeListCommanderTest extends IntegrationTest { diff --git a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/common/dto/response/ApiResponse.java b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/common/dto/response/ApiResponse.java index f5ecaa9f..d23f4007 100644 --- a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/common/dto/response/ApiResponse.java +++ b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/common/dto/response/ApiResponse.java @@ -1,6 +1,5 @@ package kr.hakdang.cassdio.web.common.dto.response; -import com.fasterxml.jackson.annotation.JsonInclude; import kr.hakdang.cassdio.common.error.ErrorCode; import lombok.AccessLevel; import lombok.EqualsAndHashCode; @@ -8,47 +7,32 @@ import lombok.NoArgsConstructor; import lombok.ToString; -import java.util.Collections; -import java.util.List; - @EqualsAndHashCode @ToString @Getter @NoArgsConstructor(access = AccessLevel.PRIVATE) public class ApiResponse { - public static final ApiResponse OK = ok(null); - private boolean ok; - private String error; - - @JsonInclude(JsonInclude.Include.NON_EMPTY) - private List reasons; - private T result; - private ApiResponse(boolean ok, String error, List reasons, T result) { + private ApiResponse(boolean ok, String error,, T result) { this.ok = ok; this.error = error; - this.reasons = reasons; this.result = result; } public static ApiResponse ok(T result) { - return new ApiResponse<>(true, null, Collections.emptyList(), result); + return new ApiResponse<>(true, null, result); } public static ApiResponse ok() { - return new ApiResponse<>(true, null, Collections.emptyList(), null); + return new ApiResponse<>(true, null, null); } public static ApiResponse fail(ErrorCode errorCode) { - return new ApiResponse<>(false, errorCode.getCode(), Collections.emptyList(), null); - } - - public static ApiResponse fail(ErrorCode errorCode, List reasons) { - return new ApiResponse<>(false, errorCode.getCode(), reasons, null); + return new ApiResponse<>(false, errorCode.getCode(), null); } } diff --git a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/ControllerExceptionAdvice.java b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/ControllerExceptionAdvice.java index e7f20b6c..89453685 100644 --- a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/ControllerExceptionAdvice.java +++ b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/ControllerExceptionAdvice.java @@ -4,7 +4,6 @@ import kr.hakdang.cassdio.common.error.ErrorCode; import kr.hakdang.cassdio.web.common.dto.response.ApiResponse; import lombok.extern.slf4j.Slf4j; -import org.springframework.context.support.DefaultMessageSourceResolvable; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.validation.BindException; @@ -12,10 +11,14 @@ import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.bind.annotation.RestControllerAdvice; -import java.util.List; - import static kr.hakdang.cassdio.common.error.ErrorCode.E400_INVALID_PARAMETER; +/** + * ControllerExceptionAdvice + * + * @author seungh0 + * @since 2024-07-01 + */ @Slf4j @RestControllerAdvice public class ControllerExceptionAdvice { @@ -23,11 +26,8 @@ public class ControllerExceptionAdvice { @ResponseStatus(HttpStatus.BAD_REQUEST) @ExceptionHandler(BindException.class) private ApiResponse handleBadRequest(BindException exception) { - List reasons = exception.getBindingResult().getFieldErrors().stream() - .map(DefaultMessageSourceResolvable::getDefaultMessage) - .toList(); log.warn(exception.getMessage(), exception); - return ApiResponse.fail(E400_INVALID_PARAMETER, reasons); + return ApiResponse.fail(E400_INVALID_PARAMETER); } @ExceptionHandler(BaseException.class) diff --git a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/JsonConfig.java b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/JsonConfig.java index 537bae40..ef5d9f9d 100644 --- a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/JsonConfig.java +++ b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/JsonConfig.java @@ -5,6 +5,12 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +/** + * JsonConfig + * + * @author seungh0 + * @since 2024-07-01 + */ @Configuration class JsonConfig { diff --git a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/WebDataBinderAdvice.java b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/WebDataBinderAdvice.java index 5fdaaff8..b94bd907 100644 --- a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/WebDataBinderAdvice.java +++ b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/WebDataBinderAdvice.java @@ -4,6 +4,12 @@ import org.springframework.web.bind.annotation.InitBinder; import org.springframework.web.bind.annotation.RestControllerAdvice; +/** + * WebDataBinderAdvice + * + * @author seungh0 + * @since 2024-07-01 + */ @RestControllerAdvice public class WebDataBinderAdvice { diff --git a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/WebMvcConfig.java b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/WebMvcConfig.java index 32c91a9d..888f7564 100644 --- a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/WebMvcConfig.java +++ b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/config/WebMvcConfig.java @@ -1,5 +1,6 @@ package kr.hakdang.cassdio.web.config; +import org.springframework.context.annotation.Configuration; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; @@ -14,6 +15,7 @@ * @author akageun * @since 2024-07-18 */ +@Configuration public class WebMvcConfig implements WebMvcConfigurer { @Override diff --git a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/ClusterApi.java b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/ClusterApi.java index 9c8647c1..11ad6912 100644 --- a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/ClusterApi.java +++ b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/ClusterApi.java @@ -23,8 +23,6 @@ import java.util.Map; import java.util.UUID; -import static java.util.Collections.emptyMap; - /** * ClusterApi * @@ -75,7 +73,7 @@ public ApiResponse> getCassandraClusterDetail( } @PostMapping("") - public ApiResponse> clusterRegister( + public ApiResponse clusterRegister( @Valid @RequestBody ClusterRegisterRequest request ) { try (CqlSession session = clusterConnector.makeSession(request.makeClusterConnector())) { @@ -88,11 +86,11 @@ public ApiResponse> clusterRegister( clusterManager.register(args); } - return ApiResponse.ok(emptyMap()); + return ApiResponse.ok(); } @PutMapping("/{clusterId}") - public ApiResponse> clusterUpdate( + public ApiResponse clusterUpdate( @PathVariable String clusterId, @Valid @RequestBody ClusterRegisterRequest request ) { @@ -105,7 +103,7 @@ public ApiResponse> clusterUpdate( clusterManager.update(clusterId, args); } - return ApiResponse.ok(emptyMap()); + return ApiResponse.ok(); } @DeleteMapping("/{clusterId}") diff --git a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/keyspace/ClusterKeyspaceApi.java b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/keyspace/ClusterKeyspaceApi.java index 1308895e..db71b650 100644 --- a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/keyspace/ClusterKeyspaceApi.java +++ b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/keyspace/ClusterKeyspaceApi.java @@ -64,11 +64,11 @@ public ApiResponse> keyspaceNames( } @PutMapping("/keyspace/cache-evict") - public ApiResponse evictKeyspaceListCache( + public ApiResponse evictKeyspaceListCache( @PathVariable String clusterId ) { clusterKeyspaceReader.refreshKeyspaceCache(clusterId); - return ApiResponse.OK; + return ApiResponse.ok(); } @GetMapping("/keyspace/{keyspace}") diff --git a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/keyspace/table/ClusterTableReader.java b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/keyspace/table/ClusterTableReader.java index 49fdc063..4037a377 100644 --- a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/keyspace/table/ClusterTableReader.java +++ b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/keyspace/table/ClusterTableReader.java @@ -4,7 +4,6 @@ import kr.hakdang.cassdio.core.domain.cluster.ClusterConnector; import kr.hakdang.cassdio.core.domain.cluster.keyspace.table.ClusterTable; import kr.hakdang.cassdio.core.domain.cluster.keyspace.table.ClusterTableArgs.ClusterTableListArgs; -import kr.hakdang.cassdio.core.domain.cluster.keyspace.table.ClusterTableCommander; import kr.hakdang.cassdio.core.domain.cluster.keyspace.table.ClusterTableListCommander; import kr.hakdang.cassdio.core.domain.cluster.keyspace.table.ClusterTableListResult; import kr.hakdang.cassdio.web.common.dto.request.CursorRequest; @@ -23,16 +22,13 @@ public class ClusterTableReader { private final ClusterConnector clusterConnector; private final ClusterTableListCommander clusterTableListCommander; - private final ClusterTableCommander clusterTableCommander; public ClusterTableReader( ClusterConnector clusterConnector, - ClusterTableListCommander clusterTableListCommander, - ClusterTableCommander clusterTableCommander + ClusterTableListCommander clusterTableListCommander ) { this.clusterConnector = clusterConnector; this.clusterTableListCommander = clusterTableListCommander; - this.clusterTableCommander = clusterTableCommander; } public ItemListWithCursorResponse listTables(String clusterId, String keyspace, CursorRequest cursorRequest) { diff --git a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/query/ClusterQueryRequest.java b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/query/ClusterQueryRequest.java index db6d4cd0..a4867453 100644 --- a/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/query/ClusterQueryRequest.java +++ b/cassdio-web/src/main/java/kr/hakdang/cassdio/web/route/cluster/query/ClusterQueryRequest.java @@ -23,8 +23,6 @@ public class ClusterQueryRequest { private int timeoutSeconds; private boolean trace = false; - private String nextCursor; - @Builder public ClusterQueryRequest(String query, String cursor, int pageSize, int timeoutSeconds, boolean trace) { this.query = query; diff --git a/cassdio-web/src/test/java/kr/hakdang/cassdio/web/route/BootstrapApiTest.java b/cassdio-web/src/test/java/kr/hakdang/cassdio/web/route/BootstrapApiTest.java index 2be242fb..4f34391e 100644 --- a/cassdio-web/src/test/java/kr/hakdang/cassdio/web/route/BootstrapApiTest.java +++ b/cassdio-web/src/test/java/kr/hakdang/cassdio/web/route/BootstrapApiTest.java @@ -3,6 +3,12 @@ import kr.hakdang.cassdio.web.IntegrationTest; import org.junit.jupiter.api.Test; +/** + * BootstrapApiTest + * + * @author seungh0 + * @since 2024-07-01 + */ class BootstrapApiTest extends IntegrationTest { @Test