Class AbstractFileProcessorTest

java.lang.Object
org.machanism.machai.gw.processor.AbstractFileProcessorTest

class AbstractFileProcessorTest extends Object
  • Field Details

    • tempDir

      @TempDir Path 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

      @Test void findFiles_whenNullOrNotDirectory_thenEmpty() throws Exception
      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

      @Test void matchPath_whenNoMatcher_thenOnlyMatchesExactScanDir() throws Exception
      Throws:
      Exception
    • matchPath_whenMatcherAndDirectMatch_thenTrue

      @Test void matchPath_whenMatcherAndDirectMatch_thenTrue() throws Exception
      Throws:
      Exception
    • matchPath_whenMatcherNoMatchAndScanDirProvidesRelatedToRoot_thenMatches

      @Test void matchPath_whenMatcherNoMatchAndScanDirProvidesRelatedToRoot_thenMatches() throws Exception
      Throws:
      Exception
    • matchPath_whenMatcherNoMatchAndRelativeToScanDirNull_thenFalse

      @Test void matchPath_whenMatcherNoMatchAndRelativeToScanDirNull_thenFalse() throws Exception
      Throws:
      Exception