Nantes Université

Skip to content

Implementation of Assertions in commons-assertions module.

Theo ARGA a demandé de fusionner E203173Q/commons:master vers master

commons-assertions is a library for performing assertions in Java code, more specifically, it is built around the assert keyword in Java, and allows the assertions to be enabled or disabled based on the -ea JVM option.

The following code snippet is an example of how to use an assertion :

assert assertThat(setofInts).contains(10).check() : assertion().message() ;

Rapports de requête de fusion