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 theTestPackageScanner
andTestProjectScanner
.
-
-
Constructor Summary
Constructors Constructor Description AbstractTestScanner(String inputDir, boolean recursive, Launcher launcher)
Instantiates aAbstractTestScanner
.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract String
getFileExtension()
Gets the file extension.protected String
getFilePattern()
Gets the file pattern.String
getInputDir()
boolean
isRecursive()
List<String>
scanTestFiles()
Scans the test files.
-
-
-
Constructor Detail
-
AbstractTestScanner
public AbstractTestScanner(String inputDir, boolean recursive, Launcher launcher)
Instantiates aAbstractTestScanner
.- Parameters:
inputDir
- the input directory to scanrecursive
- specifies whether to scan recursivelylauncher
- the launcher
-
-
Method Detail
-
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 occurredInterruptedException
- 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
-
-