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 voiddescribeMismatchSafely(Path item, org.hamcrest.Description description)voiddescribeTo(org.hamcrest.Description description)static org.hamcrest.Matcher<Path>exists()Creates a matcher that matches if the examinedPathexists.protected booleanmatchesSafely(Path path)static org.hamcrest.Matcher<Path>notExists()Creates a matcher that matches if the examinedPathdoes not exist.
-
-
-
Method Detail
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
describeMismatchSafely
protected void describeMismatchSafely(Path item, org.hamcrest.Description description)
- Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<Path>
-
matchesSafely
protected boolean matchesSafely(Path path)
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<Path>
-
exists
public static org.hamcrest.Matcher<Path> exists()
Creates a matcher that matches if the examinedPathexists.For example:
assertThat(Paths.get("path/to/some/file"), exists())
-
-