Class AbstractFileProcessorCoverageTest
java.lang.Object
org.machanism.machai.gw.processor.AbstractFileProcessorCoverageTest
Additional coverage tests for
AbstractFileProcessor.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void(package private) void
-
Field Details
-
tempDir
-
-
Constructor Details
-
AbstractFileProcessorCoverageTest
AbstractFileProcessorCoverageTest()
-
-
Method Details
-
isModuleDir_whenModulesNullOrDirNull_returnsFalse
@Test void isModuleDir_whenModulesNullOrDirNull_returnsFalse() -
shutdownExecutor_whenAwaitTerminationInterrupted_preservesInterruptAndShutdownNow
@Test void shutdownExecutor_whenAwaitTerminationInterrupted_preservesInterruptAndShutdownNow() -
findFiles_whenListFilesReturnsNull_throwsIOException
- Throws:
Exception
-
shouldExcludePath_whenNullOrNoExcludes_returnsFalse
@Test void shouldExcludePath_whenNullOrNoExcludes_returnsFalse() -
shouldExcludePath_whenExactPathOrFileName_matches
@Test void shouldExcludePath_whenExactPathOrFileName_matches() -
shouldExcludePath_whenGlobPattern_matches
@Test void shouldExcludePath_whenGlobPattern_matches() -
getPatternPath_whenBlankOrNotPattern_returnsNull
@Test void getPatternPath_whenBlankOrNotPattern_returnsNull() -
pathDepth_whenBlank_returnsZero_andCountsSegments
@Test void pathDepth_whenBlank_returnsZero_andCountsSegments() -
matchPath_whenPathMatcherNull_matchesOnlyExactScanDir
@Test void matchPath_whenPathMatcherNull_matchesOnlyExactScanDir() -
matchPath_whenRelativePathFromScanDirIsNull_returnsFalse
@Test void matchPath_whenRelativePathFromScanDirIsNull_returnsFalse() -
findFilesWithPattern_whenRelativeDirDoesNotExist_returnsEmpty
- Throws:
Exception
-
findFilesWithPattern_whenGlobPattern_includesMatchingFiles
- Throws:
Exception
-
processModulesMultiThreaded_whenFutureInterrupted_throwsAndPreservesInterrupt
@Test void processModulesMultiThreaded_whenFutureInterrupted_throwsAndPreservesInterrupt() -
setModuleThreadTimeoutMinutes_whenNonPositive_throwsIllegalArgumentException
@Test void setModuleThreadTimeoutMinutes_whenNonPositive_throwsIllegalArgumentException()
-