Class TempDir

  • All Implemented Interfaces:
    RuleBase

    public class TempDir
    extends java.lang.Object
    implements RuleBase
    • Constructor Summary

      Constructors 
      Constructor Description
      TempDir()  
      TempDir​(java.io.File tempDirParent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void create()  
      void delete()  
      java.io.File getRoot()  
      org.junit.rules.TemporaryFolder getWrapped()  
      java.io.File newFile()  
      java.io.File newFile​(java.lang.String fileName)  
      java.io.File newFolder()  
      java.io.File newFolder​(java.lang.String folder)  
      java.io.File newFolder​(java.lang.String... folderNames)  
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

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

      • TempDir

        public TempDir()
      • TempDir

        public TempDir​(java.io.File tempDirParent)
    • Method Detail

      • create

        public void create()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • newFile

        public java.io.File newFile​(java.lang.String fileName)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • newFile

        public java.io.File newFile()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • newFolder

        public java.io.File newFolder​(java.lang.String folder)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • newFolder

        public java.io.File newFolder​(java.lang.String... folderNames)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • newFolder

        public java.io.File newFolder()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getRoot

        public java.io.File getRoot()
      • delete

        public void delete()
      • getWrapped

        public org.junit.rules.TemporaryFolder getWrapped()
      • start

        public void start()
        Specified by:
        start in interface RuleBase
      • stop

        public void stop()
        Specified by:
        stop in interface RuleBase