diff --git a/core/core-api/src/test/java/io/dodn/springboot/core/api/controller/v1/ExampleControllerTest.java b/core/core-api/src/test/java/io/dodn/springboot/core/api/controller/v1/ExampleControllerTest.java index d9789f1..ad5b5ec 100644 --- a/core/core-api/src/test/java/io/dodn/springboot/core/api/controller/v1/ExampleControllerTest.java +++ b/core/core-api/src/test/java/io/dodn/springboot/core/api/controller/v1/ExampleControllerTest.java @@ -43,31 +43,16 @@ public void exampleGet() { when(exampleService.processExample(any())).thenReturn(new ExampleResult("BYE")); given().contentType(ContentType.JSON) - .queryParam("exampleParam", "HELLO_PARAM") - .get("/get/{exampleValue}", "HELLO_PATH") - .then() - .status(HttpStatus.OK) - .apply( - document( - "exampleGet", - requestPreprocessor(), - responsePreprocessor(), - pathParameters( - parameterWithName("exampleValue") - .description("ExampleValue")), - queryParameters( - parameterWithName("exampleParam") - .description("ExampleParam")), - responseFields( - fieldWithPath("result") - .type(JsonFieldType.STRING) - .description("ResultType"), - fieldWithPath("data.result") - .type(JsonFieldType.STRING) - .description("Result Date"), - fieldWithPath("error") - .type(JsonFieldType.NULL) - .ignored()))); + .queryParam("exampleParam", "HELLO_PARAM") + .get("/get/{exampleValue}", "HELLO_PATH") + .then() + .status(HttpStatus.OK) + .apply(document("exampleGet", requestPreprocessor(), responsePreprocessor(), + pathParameters(parameterWithName("exampleValue").description("ExampleValue")), + queryParameters(parameterWithName("exampleParam").description("ExampleParam")), + responseFields(fieldWithPath("result").type(JsonFieldType.STRING).description("ResultType"), + fieldWithPath("data.result").type(JsonFieldType.STRING).description("Result Date"), + fieldWithPath("error").type(JsonFieldType.NULL).ignored()))); } @Test @@ -75,29 +60,16 @@ public void examplePost() { when(exampleService.processExample(any())).thenReturn(new ExampleResult("BYE")); given().contentType(ContentType.JSON) - .body(new ExampleRequestDto("HELLO_BODY")) - .post("/post") - .then() - .status(HttpStatus.OK) - .apply( - document( - "examplePost", - requestPreprocessor(), - responsePreprocessor(), - requestFields( - fieldWithPath("data") - .type(JsonFieldType.STRING) - .description("ExampleBody Data Field")), - responseFields( - fieldWithPath("result") - .type(JsonFieldType.STRING) - .description("ResultType"), - fieldWithPath("data.result") - .type(JsonFieldType.STRING) - .description("Result Date"), - fieldWithPath("error") - .type(JsonFieldType.STRING) - .ignored()))); + .body(new ExampleRequestDto("HELLO_BODY")) + .post("/post") + .then() + .status(HttpStatus.OK) + .apply(document("examplePost", requestPreprocessor(), responsePreprocessor(), + requestFields( + fieldWithPath("data").type(JsonFieldType.STRING).description("ExampleBody Data Field")), + responseFields(fieldWithPath("result").type(JsonFieldType.STRING).description("ResultType"), + fieldWithPath("data.result").type(JsonFieldType.STRING).description("Result Date"), + fieldWithPath("error").type(JsonFieldType.STRING).ignored()))); } } diff --git a/gradle.properties b/gradle.properties index c560208..f73d68b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,12 +7,12 @@ javaVersion=21 ### Plugin depdency versions ### asciidoctorConvertVersion=3.3.2 -springJavaFormatVersion=0.0.41 +springJavaFormatVersion=0.0.43 ### Spring dependency versions ### -springBootVersion=3.3.0 -springDependencyManagementVersion=1.1.5 -springCloudDependenciesVersion=2023.0.1 +springBootVersion=3.3.2 +springDependencyManagementVersion=1.1.6 +springCloudDependenciesVersion=2023.0.3 ### External dependency versions ### -sentryVersion=7.9.0 +sentryVersion=7.14.0