Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 503 Bytes

JUnitStyleAssertions.md

File metadata and controls

11 lines (6 loc) · 503 Bytes

Pattern: JUnit - use of style assertion

Issue: -

Description

This rule detects calling JUnit style assertions like assertEquals, assertTrue, assertFalse, assertNull, assertNotNull. Groovy 1.7 ships with a feature called the "power assert", which is an assert statement with better error reporting. This is preferable to the JUnit assertions.

Further Reading