Package org.robolectric.util
Class TempDirectory
java.lang.Object
org.robolectric.util.TempDirectory
A helper class for working with temporary directories. All temporary directories created by this
class are automatically removed in a JVM shutdown hook.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateFile
(String name, String contents) createIfNotExists
(String name) void
destroy()
-
Constructor Details
-
TempDirectory
public TempDirectory() -
TempDirectory
-
-
Method Details
-
getBasePath
-
createFile
-
create
-
createIfNotExists
-
destroy
public void destroy()
-