Class JScriptProjectLayoutTest

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

class JScriptProjectLayoutTest extends Object
  • Field Details

    • tempDir

      @TempDir Path tempDir
  • Constructor Details

    • JScriptProjectLayoutTest

      JScriptProjectLayoutTest()
  • Method Details

    • isPackageJsonPresent_shouldReturnTrueWhenPackageJsonExists

      @Test void isPackageJsonPresent_shouldReturnTrueWhenPackageJsonExists() throws IOException
      Throws:
      IOException
    • isPackageJsonPresent_shouldReturnFalseWhenPackageJsonMissing

      @Test void isPackageJsonPresent_shouldReturnFalseWhenPackageJsonMissing()
    • getModules_shouldReturnEmptyListWhenNoWorkspacesKey

      @Test void getModules_shouldReturnEmptyListWhenNoWorkspacesKey() throws IOException
      Throws:
      IOException
    • getModules_shouldResolveWorkspaceGlobsAndReturnRelativeModulePaths

      @Test void getModules_shouldResolveWorkspaceGlobsAndReturnRelativeModulePaths() throws IOException
      Throws:
      IOException
    • getProjectId_shouldReturnNameFromPackageJson

      @Test void getProjectId_shouldReturnNameFromPackageJson() throws IOException
      Throws:
      IOException
    • getModules_shouldThrowIllegalStateExceptionWhenProjectDirNotSet

      @Test void getModules_shouldThrowIllegalStateExceptionWhenProjectDirNotSet()
    • getSources_getDocuments_getTests_shouldReturnEmptyLists

      @Test void getSources_getDocuments_getTests_shouldReturnEmptyLists() throws IOException
      Throws:
      IOException