Class AbstractFileProcessorTest
java.lang.Object
org.machanism.machai.gw.processor.AbstractFileProcessorTest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
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(package private) voidsetUp()(package private) void(package private) void(package private) void
-
Field Details
-
tempDir
-
-
Constructor Details
-
AbstractFileProcessorTest
AbstractFileProcessorTest()
-
-
Method Details
-
setUp
@BeforeEach void setUp() -
isPathPattern_whenGlobOrRegex_thenTrue
@Test void isPathPattern_whenGlobOrRegex_thenTrue() -
isPathPattern_whenOther_thenFalse
@Test void isPathPattern_whenOther_thenFalse() -
getPatternPath_whenBlankOrNotPattern_thenNull
@Test void getPatternPath_whenBlankOrNotPattern_thenNull() -
getPatternPath_whenPattern_thenReturnsMatcher
@Test void getPatternPath_whenPattern_thenReturnsMatcher() -
pathDepth_whenBlank_thenZero
@Test void pathDepth_whenBlank_thenZero() -
pathDepth_whenWindowsSeparators_thenNormalizes
@Test void pathDepth_whenWindowsSeparators_thenNormalizes() -
shutdownExecutor_whenNull_thenNoop
@Test void shutdownExecutor_whenNull_thenNoop() -
setModuleThreadTimeoutMinutes_whenNonPositive_thenThrows
@Test void setModuleThreadTimeoutMinutes_whenNonPositive_thenThrows() -
findFiles_whenNullOrNotDirectory_thenEmpty
- Throws:
Exception
-
findFiles_whenDirectoryListFilesReturnsNull_thenThrowsIOException
@Test void findFiles_whenDirectoryListFilesReturnsNull_thenThrowsIOException() -
shouldExcludePath_whenMatcherMatches_thenTrue
@Test void shouldExcludePath_whenMatcherMatches_thenTrue() -
shouldExcludePath_whenExactPathOrFileNameMatches_thenTrue
@Test void shouldExcludePath_whenExactPathOrFileNameMatches_thenTrue() -
match_whenNullFile_thenFalse
@Test void match_whenNullFile_thenFalse() -
matchPath_whenNoMatcher_thenOnlyMatchesExactScanDir
- Throws:
Exception
-
matchPath_whenMatcherAndDirectMatch_thenTrue
- Throws:
Exception
-
matchPath_whenMatcherNoMatchAndScanDirProvidesRelatedToRoot_thenMatches
@Test void matchPath_whenMatcherNoMatchAndScanDirProvidesRelatedToRoot_thenMatches() throws Exception- Throws:
Exception
-
matchPath_whenMatcherNoMatchAndRelativeToScanDirNull_thenFalse
- Throws:
Exception
-