com.puppycrawl.tools.checkstyle.checks.coding

Class JUnitTestCaseCheck

public final class JUnitTestCaseCheck extends Check

Ensures that the setUp(), tearDown()methods are named correctly, have no arguments, return void and are either public or protected. Also ensures that suite() is named correctly, have no arguments, return junit.framewotk.Test, public and static. Rationale: often times developers will misname one or more of these methods and not realise that the method is not being called.

Author: Simon Harris

Method Summary
int[]getDefaultTokens()
{@inheritDoc}
int[]getRequiredTokens()
{@inheritDoc}
voidvisitToken(DetailAST aAST)
{@inheritDoc}

Method Detail

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc}

getRequiredTokens

public int[] getRequiredTokens()
{@inheritDoc}

visitToken

public void visitToken(DetailAST aAST)
{@inheritDoc}