Class ProjectLayoutTest

java.lang.Object
org.machanism.machai.project.layout.ProjectLayoutTest

class ProjectLayoutTest extends Object
  • Field Details

    • tempDir

      @TempDir Path tempDir
  • Constructor Details

    • ProjectLayoutTest

      ProjectLayoutTest()
  • Method Details

    • projectDir_shouldSetAndReturnConfiguredProjectDir

      @Test void projectDir_shouldSetAndReturnConfiguredProjectDir()
    • getModules_defaultImplementationShouldReturnEmptyList

      @Test void getModules_defaultImplementationShouldReturnEmptyList()
    • getRelativePath_instanceMethodShouldStripBasePathAndLeadingSlash

      @Test void getRelativePath_instanceMethodShouldStripBasePathAndLeadingSlash() throws IOException
      Throws:
      IOException
    • getRelativePath_staticShouldReturnDotWhenDirEqualsFile

      @Test void getRelativePath_staticShouldReturnDotWhenDirEqualsFile()
    • getRelativePath_staticShouldAddSingleDotPrefixWhenRequested

      @Test void getRelativePath_staticShouldAddSingleDotPrefixWhenRequested() throws IOException
      Throws:
      IOException
    • getRelativePath_staticShouldReturnNullWhenFileNotInsideDir

      @Test void getRelativePath_staticShouldReturnNullWhenFileNotInsideDir()
    • findFiles_shouldReturnEmptyListWhenNullOrNotDirectory

      @Test void findFiles_shouldReturnEmptyListWhenNullOrNotDirectory()
    • findDirectories_shouldReturnEmptyListWhenNullOrNotDirectory

      @Test void findDirectories_shouldReturnEmptyListWhenNullOrNotDirectory()
    • findFiles_shouldRecurseAndExcludeKnownToolingDirectories

      @Test void findFiles_shouldRecurseAndExcludeKnownToolingDirectories() throws IOException
      Throws:
      IOException
    • findDirectories_shouldRecurseAndExcludeKnownToolingDirectories

      @Test void findDirectories_shouldRecurseAndExcludeKnownToolingDirectories() throws IOException
      Throws:
      IOException
    • getProjectLayoutType_shouldRemoveProjectLayoutSuffix

      @Test void getProjectLayoutType_shouldRemoveProjectLayoutSuffix()
    • getExcludeDirs_shouldReturnCloneToPreventExternalMutation

      @Test void getExcludeDirs_shouldReturnCloneToPreventExternalMutation()