NoTemporaryFileCreator

play.api.test.NoTemporaryFileCreator

A temporary file creator with no implementation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override def create(prefix: String, suffix: String): TemporaryFile

Creates a temporary file.

Creates a temporary file.

Value parameters

prefix

the prefix of the file.

suffix

the suffix of the file

Attributes

Returns

the newly created temporary file.

Definition Classes
override def create(path: Path): TemporaryFile

Creates a temporary file from an already existing file.

Creates a temporary file from an already existing file.

Value parameters

path

the existing temp file path

Attributes

Returns

a Temporary file wrapping the existing file.

Definition Classes
override def delete(file: TemporaryFile): Try[Boolean]

Deletes the temporary file.

Deletes the temporary file.

Value parameters

file

the temporary file to be deleted.

Attributes

Returns

the boolean value of the FS delete operation, or an throwable.

Definition Classes

Inherited methods

def asJava: TemporaryFileCreator

Attributes

Returns

the Java version for the temporary file creator.

Inherited from:
TemporaryFileCreator