Skip to content

Commit 15097af

Browse files
committed
style: Apply spring-javaformat to ToolDefinitionsTests
Fix formatting violations detected by spring-javaformat-maven-plugin Signed-off-by: Seol-JY <[email protected]>
1 parent a1a57b3 commit 15097af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-ai-model/src/test/java/org/springframework/ai/tool/support/ToolDefinitionsTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public String processPerson(PersonData person) {
6666
}
6767

6868
record PersonData(@JsonProperty("full_name") @JsonPropertyDescription("The person's full name") String name,
69-
@JsonPropertyDescription("The person's age") int age) {
69+
@JsonPropertyDescription("The person's age") int age) {
7070
}
7171

7272
@Test
@@ -113,7 +113,7 @@ void builderShouldCreateValidBuilderForMethodWithComplexParameter() throws Excep
113113
@Test
114114
void builderShouldThrowExceptionWhenMethodIsNull() {
115115
assertThatThrownBy(() -> ToolDefinitions.builder(null)).isInstanceOf(IllegalArgumentException.class)
116-
.hasMessageContaining("method cannot be null");
116+
.hasMessageContaining("method cannot be null");
117117
}
118118

119119
@Test
@@ -144,7 +144,7 @@ void fromShouldCreateConsistentToolDefinitions() throws Exception {
144144
@Test
145145
void fromShouldThrowExceptionWhenMethodIsNull() {
146146
assertThatThrownBy(() -> ToolDefinitions.from(null)).isInstanceOf(IllegalArgumentException.class)
147-
.hasMessageContaining("method cannot be null");
147+
.hasMessageContaining("method cannot be null");
148148
}
149149

150150
@Test

0 commit comments

Comments
 (0)