java - How to enforce JUnit assert messages? -


all junit assert methods have optional first parameter being message printed when assertion fails.

how ensure parameter passed, , developers in project never lazily skip describing assertion doing?

is there inspection tool can check that? there can programmatically?

my project maven-friendly.

as code inspection seems aim, recommend tool called pmd. if there not rule this, think trivial create one. furthermore, in detecting other code mess developers may creating.

here link: http://pmd.sourceforge.net/


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -