Determines whether the passed thing exists, i.e., whether the passed java.io.File
exists.
Determines whether the passed thing exists, i.e., whether the passed java.io.File
exists.
the thing to check for existence
true
if passed thing exists, false
otherwise
Supertrait for typeclasses that enable the
exist
matcher syntax.An
Existence[S]
provides access to the "existence nature" of typeS
in such a way thatexist
matcher syntax can be used with typeS
. AS
can be any type for which the concept of existence makes sense, such asjava.io.File
. ScalaTest provides implicit implementations forjava.io.File
. You can enable theexist
matcher syntax on your own typeU
by defining aExistence[U]
for the type and making it available implicitly.ScalaTest provides an implicit
Existence
instance forjava.io.File
in theExistence
companion object.