Gradle Test Run :test

AnthropicClientTest

summary

7

tests

0

failures

0

skipped

0.291s

duration

100%

successful

Child Name Tests Failures Skipped Duration Success rate
isAvailable returns false when no API key is configured isAvailable_returnsFalseWhenApiKeyIsMissing() 1 0 0 0.192s 100%
isAvailable returns true when an API key is configured isAvailable_returnsTrueWhenApiKeyIsConfigured() 1 0 0 0.001s 100%
suggestForClass parses wrapped JSON, normalizes invalid entries, and builds correct request suggestForClass_parsesWrappedJson_normalizesInvalidEntries_andBuildsExpectedRequest() 1 0 0 0.010s 100%
suggestForClass throws AiSuggestionException with 'No content returned by Anthropic' when content field is absent from the response suggestForClass_throwsWhenContentFieldIsAbsentFromResponse() 1 0 0 0.005s 100%
suggestForClass throws AiSuggestionException with 'No content returned by Anthropic' when content list is empty suggestForClass_throwsWhenContentListIsEmpty() 1 0 0 0.069s 100%
suggestForClass throws AiSuggestionException with 'Anthropic returned no text block' when only non-text blocks are present suggestForClass_throwsWhenNoTextBlockIsPresent() 1 0 0 0.007s 100%
suggestForClass throws AiSuggestionException when text block contains no JSON object suggestForClass_throwsWhenTextBlockContainsNoJsonObject() 1 0 0 0.005s 100%