public class CrowdMatchers extends Object
Constructor and Description |
---|
CrowdMatchers() |
Modifier and Type | Method and Description |
---|---|
static ApplicationMatcher |
application() |
static org.hamcrest.Matcher<Application> |
applicationWithId(Long id) |
static org.hamcrest.Matcher<Application> |
applicationWithIdThat(org.hamcrest.Matcher<Long> idMatcher) |
static DirectoryMatcher |
directory() |
static <T extends DirectoryGroup> |
directoryGroup() |
static org.hamcrest.Matcher<Directory> |
directoryWithId(Long id) |
static org.hamcrest.Matcher<Directory> |
directoryWithIdThat(org.hamcrest.Matcher<Long> idMatcher) |
static org.hamcrest.Matcher<Directory> |
directoryWithName(String name) |
static org.hamcrest.Matcher<Directory> |
directoryWithNameThat(org.hamcrest.Matcher<String> nameMatcher) |
static <T extends Attributes> |
entityWithAttributes() |
static <T extends Attributes> |
entityWithAttributes(Class<T> type)
A matcher that matches any entity with attributes; synonymous with
entityWithAttributes() but
its argument is used to set the matcher type. |
static <T extends Group> |
group() |
static <T extends Group> |
group(Class<T> type)
A matcher that matches any group; synonymous with
group() but its argument is used to set the matcher type. |
static <T extends Group> |
groupNamed(String name) |
static <T extends PermittedGroup> |
permittedGroup() |
static <T extends User> |
user() |
static <T extends User> |
user(Class<T> type)
A matcher that matches any user; synonymous with
user() but its argument is used to set the matcher type. |
static <T extends User> |
userNamed(String name) |
public static <T extends User> UserMatcher<T> user()
T
- type of user, to avoid castingUserMatcher
public static <T extends User> UserMatcher<T> user(Class<T> type)
user()
but its argument is used to set the matcher type.T
- type of user, to avoid castingtype
- type of user, to avoid casting (this type is not checked at runtime).UserMatcher
public static <T extends User> UserMatcher<T> userNamed(String name)
T
- type of user, to avoid castingUserMatcher
public static <T extends Group> GroupMatcher<T> group()
T
- type of group, to avoid castingGroupMatcher
public static <T extends Group> GroupMatcher<T> group(Class<T> type)
group()
but its argument is used to set the matcher type.T
- type of group, to avoid castingtype
- type of group, to avoid casting (this type is not checked at runtime).GroupMatcher
public static <T extends Group> GroupMatcher<T> groupNamed(String name)
T
- type of group, to avoid castingGroupMatcher
public static <T extends DirectoryGroup> DirectoryGroupMatcher<T> directoryGroup()
public static <T extends PermittedGroup> PermittedGroupMatcher<T> permittedGroup()
public static DirectoryMatcher directory()
public static ApplicationMatcher application()
public static org.hamcrest.Matcher<Directory> directoryWithId(Long id)
id
- ID to matchpublic static org.hamcrest.Matcher<Directory> directoryWithIdThat(org.hamcrest.Matcher<Long> idMatcher)
idMatcher
- matcher for directory IDidMatcher
.public static org.hamcrest.Matcher<Application> applicationWithId(Long id)
public static org.hamcrest.Matcher<Application> applicationWithIdThat(org.hamcrest.Matcher<Long> idMatcher)
public static org.hamcrest.Matcher<Directory> directoryWithName(String name)
name
- name to matchpublic static org.hamcrest.Matcher<Directory> directoryWithNameThat(org.hamcrest.Matcher<String> nameMatcher)
nameMatcher
- matcher for directory namenameMatcher
.public static <T extends Attributes> AttributesMatcher<T> entityWithAttributes()
T
- type of entity with attributes, to avoid castingAttributesMatcher
public static <T extends Attributes> AttributesMatcher<T> entityWithAttributes(Class<T> type)
entityWithAttributes()
but
its argument is used to set the matcher type.T
- type of entity with attributes, to avoid castingtype
- type of entity with attributes, to avoid casting (this type is not checked at runtime).AttributesMatcher
Copyright © 2021 Atlassian. All rights reserved.