Constructor and Description |
---|
DirectoryMatcher(org.hamcrest.Matcher<String> implementationClassMatcher) |
Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description) |
static DirectoryMatcher |
directory()
A matcher that matches any directory.
|
protected boolean |
matchesSafely(Directory item) |
DirectoryMatcher |
withImplementationClassMatching(org.hamcrest.Matcher<String> externalIdMatcher)
Builds a new specialised matcher to match on the implementation class.
|
DirectoryMatcher |
withImplementationClassOf(Class implementationClass)
Builds a new specialised matcher to match the given implementation class.
|
describeMismatch, describeMismatchSafely, matches
public static DirectoryMatcher directory()
public DirectoryMatcher withImplementationClassMatching(org.hamcrest.Matcher<String> externalIdMatcher)
externalIdMatcher
- matcher which must match the directory's implementation class in order for this
matcher to matchpublic DirectoryMatcher withImplementationClassOf(Class implementationClass)
implementationClass
- the provided implementation class must equal the directory's implementation class
in order for this matcher to matchprotected boolean matchesSafely(Directory item)
matchesSafely
in class org.hamcrest.TypeSafeMatcher<Directory>
public void describeTo(org.hamcrest.Description description)
Copyright © 2020 Atlassian. All rights reserved.