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 void
describeMismatchSafely
(Path item, org.hamcrest.Description description) void
describeTo
(org.hamcrest.Description description) static org.hamcrest.Matcher<Path>
Creates a matcher that matches if the examinedPath
ends with the given path part.static org.hamcrest.Matcher<Path>
Creates a matcher that matches if the examinedPath
ends with the given path part.protected boolean
matchesSafely
(Path path) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
Methods 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:
describeMismatchSafely
in classorg.hamcrest.TypeSafeMatcher<Path>
-
matchesSafely
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<Path>
-
endsWith
Creates a matcher that matches if the examinedPath
ends 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 examinedPath
ends with the given path part.For example:
assertThat(Paths.get("path/to/some/file"), endsWith("some/file"))
-