Class PathEndsWith
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<Path>
com._1c.g5.v8.dt.testing.matchers.PathEndsWith
- All Implemented Interfaces:
org.hamcrest.Matcher<Path>,org.hamcrest.SelfDescribing
Matcher that matches if the examined
Path ends with the given path part.-
Method Summary
Modifier and TypeMethodDescriptionprotected voiddescribeMismatchSafely(Path item, org.hamcrest.Description description) voiddescribeTo(org.hamcrest.Description description) static org.hamcrest.Matcher<Path>Creates a matcher that matches if the examinedPathends with the given path part.static org.hamcrest.Matcher<Path>Creates a matcher that matches if the examinedPathends with the given path part.protected booleanmatchesSafely(Path path) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
-
Method Details
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatchSafely
- Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<Path>
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<Path>
-
endsWith
Creates a matcher that matches if the examinedPathends with the given path part.For example:
assertThat(Paths.get("path/to/some/file"), endsWith(Paths.get("some/file"))) -
endsWith
Creates a matcher that matches if the examinedPathends with the given path part.For example:
assertThat(Paths.get("path/to/some/file"), endsWith("some/file"))
-