Gradle Test Run :test

AiProviderFactoryTest

summary

10

tests

0

failures

0

skipped

0.160s

duration

100%

successful

Child Name Tests Failures Skipped Duration Success rate
create with ANTHROPIC provider returns AnthropicClient when isAvailable() is true create_withAnthropicProvider_returnsAnthropicClientWhenAvailable() 1 0 0 0.002s 100%
create with ANTHROPIC provider throws AiSuggestionException with 'Anthropic API key missing' when unavailable create_withAnthropicProvider_throwsWhenUnavailable() 1 0 0 0.042s 100%
create with AUTO provider falls back to OpenAiCompatibleClient when Ollama unavailable but API key is present create_withAutoProvider_fallsBackToOpenAiCompatibleWhenOllamaUnavailableAndApiKeyPresent() 1 0 0 0.002s 100%
create with AUTO provider returns OllamaClient when Ollama isAvailable() is true create_withAutoProvider_returnsOllamaWhenAvailable() 1 0 0 0.001s 100%
create with AUTO provider throws AiSuggestionException when Ollama unavailable and no API key is configured create_withAutoProvider_throwsWhenOllamaUnavailableAndNoApiKeyConfigured() 1 0 0 0.100s 100%
create with OLLAMA provider returns OllamaClient without performing an availability check create_withOllamaProvider_returnsOllamaClientWithoutAvailabilityCheck() 1 0 0 0.001s 100%
create with OPENAI provider returns OpenAiCompatibleClient when isAvailable() is true create_withOpenAiProvider_returnsOpenAiCompatibleClientWhenAvailable() 1 0 0 0.004s 100%
create with OPENAI provider throws AiSuggestionException with 'OpenAI API key missing' when unavailable create_withOpenAiProvider_throwsWhenUnavailable() 1 0 0 0.001s 100%
create with OPENROUTER provider returns OpenAiCompatibleClient when isAvailable() is true create_withOpenRouterProvider_returnsOpenAiCompatibleClientWhenAvailable() 1 0 0 0.002s 100%
create with OPENROUTER provider throws AiSuggestionException with 'OpenRouter API key missing' when unavailable create_withOpenRouterProvider_throwsWhenUnavailable() 1 0 0 0.002s 100%