Truth is a library for performing assertions in tests. Truth makes your test assertions and failure messages more readable. Similar to AssertJ, it natively supports many JDK and Guava types, and it is extensible to others. Truth is owned and maintained by the Guava team. It is used in the majority of the tests in Google’s own codebase.
Features
- The Truth code is faster to type, especially with autocompletion
- The Truth code is easier to read
- Truth and AssertJ are very similar
- Add static imports for Truth’s entry points
- If you’re using an IDE with autocompletion, it will suggest a list of assertions you can make about the given type
- Write test assertions
Categories
LibrariesLicense
Apache License V2.0Follow Truth
Other Useful Business Software
AI-generated apps that pass security review
Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Truth!