Class FileExists
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<Path>
com._1c.g5.v8.dt.testing.matchers.FileExists
- All Implemented Interfaces:
- org.hamcrest.Matcher<Path>,- org.hamcrest.SelfDescribing
Matcher that matches if the examined 
Path does or does not exist.- 
Method SummaryModifier and TypeMethodDescriptionprotected 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>Creates a matcher that matches if the examinedPathdoes not exist.Methods inherited from class org.hamcrest.TypeSafeMatcherdescribeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
- 
Method Details- 
describeTopublic void describeTo(org.hamcrest.Description description) 
- 
describeMismatchSafely- Overrides:
- describeMismatchSafelyin class- org.hamcrest.TypeSafeMatcher<Path>
 
- 
matchesSafely- Specified by:
- matchesSafelyin class- org.hamcrest.TypeSafeMatcher<Path>
 
- 
existsCreates a matcher that matches if the examinedPathexists.For example: assertThat(Paths.get("path/to/some/file"), exists())
- 
notExistsCreates a matcher that matches if the examinedPathdoes not exist.For example: assertThat(Paths.get("path/to/some/file"), notExists())
 
-