Class PathEndsWith
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<Path>
-
- com._1c.g5.v8.dt.testing.matchers.PathEndsWith
-
-
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>
endsWith(String part)
Creates a matcher that matches if the examinedPath
ends with the given path part.static org.hamcrest.Matcher<Path>
endsWith(Path part)
Creates a matcher that matches if the examinedPath
ends with the given path part.protected boolean
matchesSafely(Path path)
-
-
-
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>
-
endsWith
public static org.hamcrest.Matcher<Path> endsWith(Path part)
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")))
-
-