Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 1.38 KB

README.md

File metadata and controls

27 lines (24 loc) · 1.38 KB

javadoc Build Status License badge-jdk Maven Central codecov

Veritas

Veritas is a fluent assertions library, inspired by the self-typing mechanism of AssertJ/Fest. It tells you when a test fails:

   String text = "abc";
   assertThat(text).endsWith("d");

It can tell you a custom message on test fail:

    String text = "def";
    assertThat(text).onFail("text does not start with 'a'").startsWith("a");

It can tell you a custom message on a test pass:

    int number = 42;
    assertThat(number).onSuccess(number+" is indeed even.").isEven();

Veritas aims to be small and concise and will always tell you the truth.