Skip to content

Commit 0a42bf0

Browse files
eddumelendeztzolov
authored andcommitted
Fix assertions
1 parent f783796 commit 0a42bf0

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

spring-ai-core/src/test/java/org/springframework/ai/chat/ChatBuilderTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ void createFunctionCallingOptionTest() {
9797
// Callback Functions
9898
assertThat(options.getFunctionCallbacks()).isNotNull();
9999
assertThat(options.getFunctionCallbacks().size()).isEqualTo(1);
100-
assertThat(options.getFunctionCallbacks().contains(cb));
100+
assertThat(options.getFunctionCallbacks()).contains(cb);
101101

102102
// Functions
103103
assertThat(options.getFunctions()).isNotNull();
104104
assertThat(options.getFunctions().size()).isEqualTo(1);
105-
assertThat(options.getFunctions().contains(func));
105+
assertThat(options.getFunctions()).contains(func);
106106

107107
}
108108

vector-stores/spring-ai-redis-store/src/test/java/org/springframework/ai/vectorstore/RedisVectorStoreIT.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,8 @@ void cleanDatabase() {
7878
@Test
7979
void ensureIndexGetsCreated() {
8080
this.contextRunner.run(context -> {
81-
assertThat(context.getBean(RedisVectorStore.class)
82-
.getJedis()
83-
.ftList()
84-
.contains(RedisVectorStore.DEFAULT_INDEX_NAME));
81+
assertThat(context.getBean(RedisVectorStore.class).getJedis().ftList())
82+
.contains(RedisVectorStore.DEFAULT_INDEX_NAME);
8583
});
8684
}
8785

0 commit comments

Comments
 (0)