diff --git a/auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/test/java/org/springframework/ai/mcp/client/autoconfigure/McpToolCallbackAutoConfigurationTests.java b/auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/test/java/org/springframework/ai/mcp/client/autoconfigure/McpToolCallbackAutoConfigurationTests.java index fc76a90d951..8838857971d 100644 --- a/auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/test/java/org/springframework/ai/mcp/client/autoconfigure/McpToolCallbackAutoConfigurationTests.java +++ b/auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/test/java/org/springframework/ai/mcp/client/autoconfigure/McpToolCallbackAutoConfigurationTests.java @@ -29,7 +29,7 @@ public class McpToolCallbackAutoConfigurationTests { .withConfiguration(AutoConfigurations.of(McpToolCallbackAutoConfiguration.class)); @Test - void enableddByDefault() { + void enabledByDefault() { this.applicationContext.run(context -> { assertThat(context).hasBean("mcpToolCallbacks"); diff --git a/auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/test/java/org/springframework/ai/mcp/client/autoconfigure/properties/McpSseClientPropertiesTests.java b/auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/test/java/org/springframework/ai/mcp/client/autoconfigure/properties/McpSseClientPropertiesTests.java index 4eb6dfa64cc..79f532c8f32 100644 --- a/auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/test/java/org/springframework/ai/mcp/client/autoconfigure/properties/McpSseClientPropertiesTests.java +++ b/auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/test/java/org/springframework/ai/mcp/client/autoconfigure/properties/McpSseClientPropertiesTests.java @@ -112,7 +112,7 @@ void sseParametersRecord() { } @Test - void sseParametersRecordWithNullSseEdnpoint() { + void sseParametersRecordWithNullSseEndpoint() { String url = "http://test-server:8080/events"; McpSseClientProperties.SseParameters params = new McpSseClientProperties.SseParameters(url, null); diff --git a/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/audio/transcription/TranscriptionModelTests.java b/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/audio/transcription/TranscriptionModelTests.java index 46b07b4067f..2fa2a44717a 100644 --- a/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/audio/transcription/TranscriptionModelTests.java +++ b/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/audio/transcription/TranscriptionModelTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2023-2024 the original author or authors. + * Copyright 2023-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ class TranscriptionModelTests { @Test - void transcrbeRequestReturnsResponseCorrectly() { + void transcribeRequestReturnsResponseCorrectly() { Resource mockAudioFile = Mockito.mock(Resource.class); diff --git a/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/OpenAiRetryTests.java b/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/OpenAiRetryTests.java index 1b74bfa9208..e19e82640b2 100644 --- a/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/OpenAiRetryTests.java +++ b/models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/OpenAiRetryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2023-2024 the original author or authors. + * Copyright 2023-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -157,7 +157,7 @@ public void openAiChatNonTransientError() { } @Test - @Disabled("Currently stream() does not implmement retry") + @Disabled("Currently stream() does not implement retry") public void openAiChatStreamTransientError() { var choice = new ChatCompletionChunk.ChunkChoice(ChatCompletionFinishReason.STOP, 0, @@ -179,7 +179,7 @@ public void openAiChatStreamTransientError() { } @Test - @Disabled("Currently stream() does not implmement retry") + @Disabled("Currently stream() does not implement retry") public void openAiChatStreamNonTransientError() { given(this.openAiApi.chatCompletionStream(isA(ChatCompletionRequest.class), any())) .willThrow(new RuntimeException("Non Transient Error")); diff --git a/models/spring-ai-vertex-ai-gemini/src/test/java/org/springframework/ai/vertexai/gemini/tool/VertexAiGeminiPaymentTransactionMethodIT.java b/models/spring-ai-vertex-ai-gemini/src/test/java/org/springframework/ai/vertexai/gemini/tool/VertexAiGeminiPaymentTransactionMethodIT.java index 2b2635d8ba4..0333efd942f 100644 --- a/models/spring-ai-vertex-ai-gemini/src/test/java/org/springframework/ai/vertexai/gemini/tool/VertexAiGeminiPaymentTransactionMethodIT.java +++ b/models/spring-ai-vertex-ai-gemini/src/test/java/org/springframework/ai/vertexai/gemini/tool/VertexAiGeminiPaymentTransactionMethodIT.java @@ -76,14 +76,14 @@ public void paymentStatuses() { String content = this.chatClient.prompt() .advisors(new SimpleLoggerAdvisor()) - .toolNames("paymentStatus") + .toolNames("getPaymentStatus") .user(""" What is the status of my payment transactions 001, 002 and 003? - If requred invoke the function per transaction. + If required invoke the function per transaction. """) .call() .content(); - logger.info("" + content); + logger.info(content); assertThat(content).contains("001", "002", "003"); assertThat(content).contains("pending", "approved", "rejected"); @@ -94,10 +94,10 @@ public void streamingPaymentStatuses() { Flux streamContent = this.chatClient.prompt() .advisors(new SimpleLoggerAdvisor()) - .toolNames("paymentStatus") + .toolNames("getPaymentStatuses") .user(""" What is the status of my payment transactions 001, 002 and 003? - If requred invoke the function per transaction. + If required invoke the function per transaction. """) .stream() .content(); @@ -130,13 +130,13 @@ record Status(String name) { public static class PaymentService { @Tool(description = "Get the status of a single payment transaction") - public Status paymentStatus(Transaction transaction) { + public Status getPaymentStatus(Transaction transaction) { logger.info("Single Transaction: " + transaction); return DATASET.get(transaction); } @Tool(description = "Get the list statuses of a list of payment transactions") - public List statusespaymentStatuses(List transactions) { + public List getPaymentStatuses(List transactions) { logger.info("Transactions: " + transactions); return transactions.stream().map(t -> DATASET.get(t)).toList(); } diff --git a/models/spring-ai-vertex-ai-gemini/src/test/java/org/springframework/ai/vertexai/gemini/tool/VertexAiGeminiPaymentTransactionToolsIT.java b/models/spring-ai-vertex-ai-gemini/src/test/java/org/springframework/ai/vertexai/gemini/tool/VertexAiGeminiPaymentTransactionToolsIT.java index 5832839b5de..062d8e623d3 100644 --- a/models/spring-ai-vertex-ai-gemini/src/test/java/org/springframework/ai/vertexai/gemini/tool/VertexAiGeminiPaymentTransactionToolsIT.java +++ b/models/spring-ai-vertex-ai-gemini/src/test/java/org/springframework/ai/vertexai/gemini/tool/VertexAiGeminiPaymentTransactionToolsIT.java @@ -76,7 +76,7 @@ public void paymentStatuses() { .tools(new MyTools()) .user(""" What is the status of my payment transactions 001, 002 and 003? - If requred invoke the function per transaction. + If required invoke the function per transaction. """).call().content(); // @formatter:on logger.info("" + content); @@ -93,7 +93,7 @@ public void streamingPaymentStatuses() { .tools(new MyTools()) .user(""" What is the status of my payment transactions 001, 002 and 003? - If requred invoke the function per transaction. + If required invoke the function per transaction. """) .stream() .content(); diff --git a/vector-stores/spring-ai-cassandra-store/src/test/java/org/springframework/ai/vectorstore/cassandra/WikiVectorStoreExample.java b/vector-stores/spring-ai-cassandra-store/src/test/java/org/springframework/ai/vectorstore/cassandra/WikiVectorStoreExample.java index 415b95b7e97..80d8b945fff 100644 --- a/vector-stores/spring-ai-cassandra-store/src/test/java/org/springframework/ai/vectorstore/cassandra/WikiVectorStoreExample.java +++ b/vector-stores/spring-ai-cassandra-store/src/test/java/org/springframework/ai/vectorstore/cassandra/WikiVectorStoreExample.java @@ -39,7 +39,7 @@ import static org.assertj.core.api.Assertions.assertThat; /** - * Example integration-test to use against the schema and full wiki datasets in sstable + * Example integration-test to use against the schema and full wiki datasets in stable * format available from https://github.com/datastax-labs/colbert-wikipedia-data * * Use `mvn failsafe:integration-test -Dit.test=WikiVectorStoreExample` @@ -106,7 +106,7 @@ public CassandraVectorStore store(CqlSession cqlSession, EmbeddingModel embeddin .addMetadataColumns(extraColumns) .primaryKeyTranslator((List primaryKeys) -> { // the deliminator used to join fields together into the document's id - // is arbitary, here "§¶" is used + // is arbitrary, here "§¶" is used if (primaryKeys.isEmpty()) { return "test§¶0"; }