Rule that checks for JUnit assert() method calls with constant arguments such that the assertion always fails. This includes: assertTrue(false), assertFalse(true) and assertNull(CONSTANT).
This rule sets the default value of the applyToClassNames property to only match class names ending in 'Test' or 'Tests'.
Rule that checks for JUnit assert() method calls with constant arguments such that the assertion always succeeds. This includes: assertTrue(true), assertFalse(false) and assertNull(null).
This rule sets the default value of the applyToClassNames property to only match class names ending in 'Test' or 'Tests'.
Rule that checks if a JUnit test class contains public methods other than standard test methods, JUnit framework methods or methods with JUnit annotations.
The following public methods are ignored by this rule:
Public, non-test methods on a test class violate conventional usage of test classes, and they typically break encapsulation unnecessarily.
Public, non-test methods may also hide unintentional 'Lost Tests'. For instance, the test method declaration may (unintentionally) include methods parameters, and thus be ignored by JUnit. Or the method may (unintentionally) not follow the "test.." naming convention and not have the @Test annotation, and thus be ignored by JUnit.
This rule sets the default value of the applyToClassNames property to only match class names ending in 'Test' or 'Tests'.
Rule that checks that if the JUnit setUp method is defined, that it includes a call to super.setUp().
This rule sets the default value of the applyToClassNames property to only match class names ending in 'Test' or 'Tests'.
Rule that checks that if the JUnit tearDown method is defined, that it includes a call to super.tearDown().
This rule sets the default value of the applyToClassNames property to only match class names ending in 'Test' or 'Tests'.