Class FileFunctionToolsTest

java.lang.Object
org.machanism.machai.gw.tools.FileFunctionToolsTest

class FileFunctionToolsTest extends Object
  • Field Details

    • tempDir

      @TempDir File tempDir
  • Constructor Details

    • FileFunctionToolsTest

      FileFunctionToolsTest()
  • Method Details

    • getRelativePath_whenNullDir_thenReturnsNull

      @Test void getRelativePath_whenNullDir_thenReturnsNull()
    • getRelativePath_whenNullFile_thenReturnsNull

      @Test void getRelativePath_whenNullFile_thenReturnsNull()
    • getRelativePath_whenSamePath_returnsDot

      @Test void getRelativePath_whenSamePath_returnsDot()
    • getRelativePath_whenDescendant_addsDotAndNormalizesSlashes

      @Test void getRelativePath_whenDescendant_addsDotAndNormalizesSlashes() throws Exception
      Throws:
      Exception
    • getRelativePath_whenDescendantAndNoDot_doesNotAddDot

      @Test void getRelativePath_whenDescendantAndNoDot_doesNotAddDot() throws Exception
      Throws:
      Exception
    • getRelativePath_whenNotDescendant_thenReturnsParentRelativePath

      @Test void getRelativePath_whenNotDescendant_thenReturnsParentRelativePath()
    • getRelativePath_whenEmptyRelativePath_thenReturnsDot

      @Test void getRelativePath_whenEmptyRelativePath_thenReturnsDot()