Class AbstractFileProcessorCoverageTest

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

class AbstractFileProcessorCoverageTest extends Object
Additional coverage tests for AbstractFileProcessor.
  • Field Details

    • tempDir

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

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

      @Test void findFilesWithPattern_whenRelativeDirDoesNotExist_returnsEmpty() throws Exception
      Throws:
      Exception
    • findFilesWithPattern_whenGlobPattern_includesMatchingFiles

      @Test void findFilesWithPattern_whenGlobPattern_includesMatchingFiles() throws Exception
      Throws:
      Exception
    • processModulesMultiThreaded_whenFutureInterrupted_throwsAndPreservesInterrupt

      @Test void processModulesMultiThreaded_whenFutureInterrupted_throwsAndPreservesInterrupt()
    • setModuleThreadTimeoutMinutes_whenNonPositive_throwsIllegalArgumentException

      @Test void setModuleThreadTimeoutMinutes_whenNonPositive_throwsIllegalArgumentException()