Skip to content

ingmargoudt/veritas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

small fluent assertions library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages