Class AbstractTestScanner

java.lang.Object
de.tracetronic.jenkins.plugins.ecutest.test.scan.AbstractTestScanner
Direct Known Subclasses:
TestPackageScanner, TestProjectScanner

public abstract class AbstractTestScanner extends Object
Common base class for the TestPackageScanner and TestProjectScanner.
  • Constructor Details

    • AbstractTestScanner

      public AbstractTestScanner(String inputDir, boolean recursive, Launcher launcher)
      Instantiates a AbstractTestScanner.
      Parameters:
      inputDir - the input directory to scan
      recursive - specifies whether to scan recursively
      launcher - the launcher
  • Method Details

    • getInputDir

      public String getInputDir()
    • isRecursive

      public boolean isRecursive()
    • scanTestFiles

      public List<String> scanTestFiles() throws IOException, InterruptedException
      Scans the test files.
      Returns:
      the test files
      Throws:
      IOException - signals that an I/O exception has occurred
      InterruptedException - if the current thread is interrupted while waiting for the completion
    • getFilePattern

      protected String getFilePattern()
      Gets the file pattern.
      Returns:
      the file pattern
    • getFileExtension

      protected abstract String getFileExtension()
      Gets the file extension.
      Returns:
      the file extension