Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
A JUnit test assertion with a boolean literal is unnecessary since it always will eval to the same thing. Consider using flow control (in case of assertTrue(false) or similar) or simply removing statements like assertTrue(true) and assertFalse(false). If you just want a test to halt, use the fail method.
public class SimpleTest extends TestCase {
  public void testX() {
    assertTrue(true); // violation
New to GrepCode? Check out our FAQ X