Class BaseFileSandBoxTest

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String GENERATED_IMPEXES_DIR  
      static org.apache.log4j.Logger LOG  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void assertGenerated​(java.lang.String rootgenerated, java.lang.String[] generatedNames)  
      protected void assertHasLine​(java.util.Iterator<java.lang.String> lines, java.lang.String lineExpected)  
      protected void assertNothingGenerated​(java.lang.String rootgenerated)  
      void cleanUp()  
      protected void cleanUpFileStructure​(boolean recreate)  
      protected java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getAllMatchingTemplates​(java.io.File directory)  
      protected java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getAllMatchingTemplates​(java.io.File directory, java.lang.String nameCriteria)  
      protected abstract org.springframework.core.io.Resource getRootDir()  
      void prepare()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        public static final org.apache.log4j.Logger LOG
      • GENERATED_IMPEXES_DIR

        protected static final java.lang.String GENERATED_IMPEXES_DIR
        See Also:
        Constant Field Values
    • Constructor Detail

      • BaseFileSandBoxTest

        public BaseFileSandBoxTest()
    • Method Detail

      • getRootDir

        protected abstract org.springframework.core.io.Resource getRootDir()
      • cleanUpFileStructure

        protected void cleanUpFileStructure​(boolean recreate)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • assertNothingGenerated

        protected void assertNothingGenerated​(java.lang.String rootgenerated)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • assertGenerated

        protected void assertGenerated​(java.lang.String rootgenerated,
                                       java.lang.String[] generatedNames)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • assertHasLine

        protected void assertHasLine​(java.util.Iterator<java.lang.String> lines,
                                     java.lang.String lineExpected)
        Parameters:
        lines -
      • getAllMatchingTemplates

        protected java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getAllMatchingTemplates​(java.io.File directory)
      • getAllMatchingTemplates

        protected java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getAllMatchingTemplates​(java.io.File directory,
                                                                                                                 java.lang.String nameCriteria)
      • prepare

        public void prepare()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • cleanUp

        public void cleanUp()
                     throws java.io.IOException
        Throws:
        java.io.IOException