Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 360 Bytes

JUnitSpelling.md

File metadata and controls

16 lines (12 loc) · 360 Bytes

JUnitSpelling

Category: pmd-unit-tests
Rule Key: pmd-unit-tests:JUnitSpelling


Some JUnit framework methods are easy to misspell.

import junit.framework.*;

public class Foo extends TestCase {
  public void setup() {} // violation, should be setUp()
  public void TearDown() {} // violation, should be tearDown()
}