Gradle Test Run :test

OllamaClientTest

summary

4

tests

0

failures

0

skipped

0.178s

duration

100%

successful

Child Name Tests Failures Skipped Duration Success rate
isAvailable returns false when the Ollama /api/tags endpoint throws an IOException isAvailable_returnsFalseWhenTagsEndpointFails() 1 0 0 0.003s 100%
isAvailable returns true when the Ollama /api/tags endpoint responds successfully isAvailable_returnsTrueWhenTagsEndpointResponds() 1 0 0 0.151s 100%
suggestForClass parses wrapped JSON, normalizes invalid entries, and builds expected request body suggestForClass_parsesWrappedJson_normalizesInvalidEntries_andBuildsExpectedRequestBody() 1 0 0 0.010s 100%
suggestForClass throws AiSuggestionException when model returns text without a JSON object suggestForClass_throwsWhenModelReturnsTextWithoutJsonObject() 1 0 0 0.012s 100%