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 voiddescribeMismatchSafely(Path item, org.hamcrest.Description description)voiddescribeTo(org.hamcrest.Description description)static org.hamcrest.Matcher<Path>endsWith(String part)Creates a matcher that matches if the examinedPathends with the given path part.static org.hamcrest.Matcher<Path>endsWith(Path part)Creates a matcher that matches if the examinedPathends with the given path part.protected booleanmatchesSafely(Path path)
-
-
-
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>
-
endsWith
public static org.hamcrest.Matcher<Path> endsWith(Path part)
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")))
-
-