public class ApplicationMatcher extends org.hamcrest.TypeSafeMatcher<Application>
Modifier and Type | Method and Description |
---|---|
static ApplicationMatcher |
application()
A matcher that matches any application.
|
static ApplicationMatcher |
applicationNamed(String name)
A matcher that matches an application with the given name.
|
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(Application item) |
ApplicationMatcher |
withNameMatching(org.hamcrest.Matcher<String> nameMatcher)
Builds a new specialised matcher to match on application name; the returned matcher will only match if all
this matcher's non-name constraints are matched AND the given matcher matches the application's name.
|
ApplicationMatcher |
withNameOf(String name)
Builds a new specialised matcher to match the given application name exactly; the returned matcher will only
match if all this matcher's non-name constraints are matched AND the given string is equal to the application's
name.
|
ApplicationMatcher |
withRemoteAddressesMatching(org.hamcrest.Matcher<Set<RemoteAddress>> remoteAddressesMatcher)
Builds a new specialised matcher to match on remote addresses; the returned matcher will only match if all
this matcher's non-remote-address constraints are matched AND the given matcher matches the application's
remote addresses.
|
ApplicationMatcher |
withRemoteAddressOf(Set<RemoteAddress> remoteAddresses)
Builds a new specialised matcher to match the given application remote addresses exactly; the returned matcher
will only match if all this matcher's non-remote-address constraints are matched AND the given set is equal to
the application's remote addresses.
|
describeMismatch, describeMismatchSafely, matches
public static ApplicationMatcher application()
public static ApplicationMatcher applicationNamed(String name)
public ApplicationMatcher withNameMatching(org.hamcrest.Matcher<String> nameMatcher)
nameMatcher
- matcher which must match the application's name in order for this matcher to matchpublic ApplicationMatcher withNameOf(String name)
name
- string which must equal the application's name in order for this matcher to matchpublic ApplicationMatcher withRemoteAddressesMatching(org.hamcrest.Matcher<Set<RemoteAddress>> remoteAddressesMatcher)
remoteAddressesMatcher
- matcher which must match the application's remote addresses in order for this
matcher to matchpublic ApplicationMatcher withRemoteAddressOf(Set<RemoteAddress> remoteAddresses)
remoteAddresses
- set which must equal the application's remote address in order for this matcher to matchprotected boolean matchesSafely(Application item)
matchesSafely
in class org.hamcrest.TypeSafeMatcher<Application>
public void describeTo(org.hamcrest.Description description)
Copyright © 2020 Atlassian. All rights reserved.