Class FileExists
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<Path>
-
- com._1c.g5.v8.dt.testing.matchers.FileExists
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
describeMismatchSafely(Path item, org.hamcrest.Description description)
void
describeTo(org.hamcrest.Description description)
static org.hamcrest.Matcher<Path>
exists()
Creates a matcher that matches if the examinedPath
exists.protected boolean
matchesSafely(Path path)
static org.hamcrest.Matcher<Path>
notExists()
Creates a matcher that matches if the examinedPath
does not exist.
-
-
-
Method Detail
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
describeMismatchSafely
protected void describeMismatchSafely(Path item, org.hamcrest.Description description)
- Overrides:
describeMismatchSafely
in classorg.hamcrest.TypeSafeMatcher<Path>
-
matchesSafely
protected boolean matchesSafely(Path path)
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<Path>
-
exists
public static org.hamcrest.Matcher<Path> exists()
Creates a matcher that matches if the examinedPath
exists.For example:
assertThat(Paths.get("path/to/some/file"), exists())
-
-