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

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Truth

Truth Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Truth!

Additional Project Details

Programming Language

Java

Related Categories

Java Libraries

Registered

2023-08-08