Class SpringTestFileNameCheck

java.lang.Object
com.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
io.spring.javaformat.checkstyle.check.SpringTestFileNameCheck
All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable, com.puppycrawl.tools.checkstyle.api.Contextualizable, com.puppycrawl.tools.checkstyle.api.FileSetCheck

public class SpringTestFileNameCheck extends com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
Checks that test filenames end Tests.java and not Test.java.
Author:
Phillip Webb
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean

    com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    processFiltered(File file, com.puppycrawl.tools.checkstyle.api.FileText fileText)
     

    Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck

    addViolations, beginProcessing, destroy, finishProcessing, fireErrors, getFileContents, getFileExtensions, getMessageDispatcher, getTabWidth, getViolations, init, log, log, process, setFileContents, setFileExtensions, setMessageDispatcher, setTabWidth

    Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter

    finishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverity

    Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean

    configure, contextualize, getConfiguration, setupChild

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.puppycrawl.tools.checkstyle.api.Configurable

    configure

    Methods inherited from interface com.puppycrawl.tools.checkstyle.api.Contextualizable

    contextualize
  • Constructor Details

    • SpringTestFileNameCheck

      public SpringTestFileNameCheck()
  • Method Details

    • processFiltered

      protected void processFiltered(File file, com.puppycrawl.tools.checkstyle.api.FileText fileText) throws com.puppycrawl.tools.checkstyle.api.CheckstyleException
      Specified by:
      processFiltered in class com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
      Throws:
      com.puppycrawl.tools.checkstyle.api.CheckstyleException