Class LoadFromRelativeFile

    • Method Detail

      • loadContent

        protected String loadContent​(String path)
      • mavenModuleStoryFilePath

        public static LoadFromRelativeFile.StoryFilePath mavenModuleStoryFilePath​(String relativePath)
        Maven by default, has its PRODUCTION classes in target/classes. This story file path is relative to that.
        Parameters:
        relativePath - the path to the stories' base-dir inside the module
        Returns:
        the resulting StoryFilePath
      • mavenModuleTestStoryFilePath

        public static LoadFromRelativeFile.StoryFilePath mavenModuleTestStoryFilePath​(String relativePath)
        Maven by default, has its TEST classes in target/test-classes. This story file path is relative to that.
        Parameters:
        relativePath - the path to the stories' base-dir inside the module
        Returns:
        the resulting StoryFilePath
      • intellijProjectStoryFilePath

        public static LoadFromRelativeFile.StoryFilePath intellijProjectStoryFilePath​(String relativePath)
        Intellij by default, has its PRODUCTION classes in classes/production. This story file path is relative to that.
        Parameters:
        relativePath - the path to the stories' base-dir inside the module
        Returns:
        the resulting StoryFilePath
      • intellijProjectTestStoryFilePath

        public static LoadFromRelativeFile.StoryFilePath intellijProjectTestStoryFilePath​(String relativePath)
        Intellij by default, has its TEST classes in classes/test. This story file path is relative to that.
        Parameters:
        relativePath - the path to the stories' base-dir inside the module
        Returns:
        the resulting StoryFilePath