Skip to content

Commit e11d110

Browse files
committed
test: Fix test data
test: Add comprehensive test coverage for QuestionAnswerAdvisor and VectorStoreChatMemoryAdvisor. Co-authored-by: Oleksandr Klymenko <[email protected]> Signed-off-by: Oleksandr Klymenko <[email protected]>
1 parent 162f99e commit e11d110

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

advisors/spring-ai-advisors-vector-store/src/test/java/org/springframework/ai/chat/client/advisor/vectorstore/QuestionAnswerAdvisorTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,11 @@ public void qaAdvisorWithComplexParameterizedTemplate() {
322322
.param("topic", "machine learning")
323323
.param("aspect1", "performance")
324324
.param("aspect2", "scalability")
325-
.param("userId", "user123"))
325+
.param("userId", "user1"))
326326
.call()
327327
.chatResponse();
328328

329-
var expectedQuery = "Please analyze machine learning considering performance and scalability for user user123";
329+
var expectedQuery = "Please analyze machine learning considering performance and scalability for user user1";
330330
assertThat(this.vectorSearchCaptor.getValue().getQuery()).isEqualTo(expectedQuery);
331331

332332
Message userMessage = this.promptCaptor.getValue().getInstructions().get(0);

0 commit comments

Comments
 (0)