Skip to content

Commit 90fef4d

Browse files
authored
Merge pull request #19 from team-dodn/dependency-8-19-24
[DEPENDENCY] Update dependencies
2 parents f4ea6fd + c7aaafb commit 90fef4d

File tree

2 files changed

+25
-53
lines changed

2 files changed

+25
-53
lines changed

core/core-api/src/test/java/io/dodn/springboot/core/api/controller/v1/ExampleControllerTest.java

Lines changed: 20 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -43,61 +43,33 @@ public void exampleGet() {
4343
when(exampleService.processExample(any())).thenReturn(new ExampleResult("BYE"));
4444

4545
given().contentType(ContentType.JSON)
46-
.queryParam("exampleParam", "HELLO_PARAM")
47-
.get("/get/{exampleValue}", "HELLO_PATH")
48-
.then()
49-
.status(HttpStatus.OK)
50-
.apply(
51-
document(
52-
"exampleGet",
53-
requestPreprocessor(),
54-
responsePreprocessor(),
55-
pathParameters(
56-
parameterWithName("exampleValue")
57-
.description("ExampleValue")),
58-
queryParameters(
59-
parameterWithName("exampleParam")
60-
.description("ExampleParam")),
61-
responseFields(
62-
fieldWithPath("result")
63-
.type(JsonFieldType.STRING)
64-
.description("ResultType"),
65-
fieldWithPath("data.result")
66-
.type(JsonFieldType.STRING)
67-
.description("Result Date"),
68-
fieldWithPath("error")
69-
.type(JsonFieldType.NULL)
70-
.ignored())));
46+
.queryParam("exampleParam", "HELLO_PARAM")
47+
.get("/get/{exampleValue}", "HELLO_PATH")
48+
.then()
49+
.status(HttpStatus.OK)
50+
.apply(document("exampleGet", requestPreprocessor(), responsePreprocessor(),
51+
pathParameters(parameterWithName("exampleValue").description("ExampleValue")),
52+
queryParameters(parameterWithName("exampleParam").description("ExampleParam")),
53+
responseFields(fieldWithPath("result").type(JsonFieldType.STRING).description("ResultType"),
54+
fieldWithPath("data.result").type(JsonFieldType.STRING).description("Result Date"),
55+
fieldWithPath("error").type(JsonFieldType.NULL).ignored())));
7156
}
7257

7358
@Test
7459
public void examplePost() {
7560
when(exampleService.processExample(any())).thenReturn(new ExampleResult("BYE"));
7661

7762
given().contentType(ContentType.JSON)
78-
.body(new ExampleRequestDto("HELLO_BODY"))
79-
.post("/post")
80-
.then()
81-
.status(HttpStatus.OK)
82-
.apply(
83-
document(
84-
"examplePost",
85-
requestPreprocessor(),
86-
responsePreprocessor(),
87-
requestFields(
88-
fieldWithPath("data")
89-
.type(JsonFieldType.STRING)
90-
.description("ExampleBody Data Field")),
91-
responseFields(
92-
fieldWithPath("result")
93-
.type(JsonFieldType.STRING)
94-
.description("ResultType"),
95-
fieldWithPath("data.result")
96-
.type(JsonFieldType.STRING)
97-
.description("Result Date"),
98-
fieldWithPath("error")
99-
.type(JsonFieldType.STRING)
100-
.ignored())));
63+
.body(new ExampleRequestDto("HELLO_BODY"))
64+
.post("/post")
65+
.then()
66+
.status(HttpStatus.OK)
67+
.apply(document("examplePost", requestPreprocessor(), responsePreprocessor(),
68+
requestFields(
69+
fieldWithPath("data").type(JsonFieldType.STRING).description("ExampleBody Data Field")),
70+
responseFields(fieldWithPath("result").type(JsonFieldType.STRING).description("ResultType"),
71+
fieldWithPath("data.result").type(JsonFieldType.STRING).description("Result Date"),
72+
fieldWithPath("error").type(JsonFieldType.STRING).ignored())));
10173
}
10274

10375
}

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ javaVersion=21
77

88
### Plugin depdency versions ###
99
asciidoctorConvertVersion=3.3.2
10-
springJavaFormatVersion=0.0.41
10+
springJavaFormatVersion=0.0.43
1111

1212
### Spring dependency versions ###
13-
springBootVersion=3.3.0
14-
springDependencyManagementVersion=1.1.5
15-
springCloudDependenciesVersion=2023.0.1
13+
springBootVersion=3.3.2
14+
springDependencyManagementVersion=1.1.6
15+
springCloudDependenciesVersion=2023.0.3
1616

1717
### External dependency versions ###
18-
sentryVersion=7.9.0
18+
sentryVersion=7.14.0

0 commit comments

Comments
 (0)