Testing LangChain4j apps means dealing with non-deterministic LLM responses, which makes traditional testing a pain. This skill gives you the full spectrum: mock ChatModel responses with Mockito for fast unit tests, spin up real Ollama instances with Testcontainers for integration tests, and validate complete RAG workflows end-to-end. The code samples show proper health checks and await patterns so your tests don't flake when containers are slow to start. Honestly, the 70/20/10 testing pyramid guidance is the most useful part here. It keeps you from over-relying on expensive integration tests while still catching real issues that mocks miss.
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill langchain4j-testing-strategies