com.atlassian.crowd.test.matchers
Class CrowdMatchers
java.lang.Object
com.atlassian.crowd.test.matchers.CrowdMatchers
public class CrowdMatchers
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrowdMatchers
public CrowdMatchers()
user
public static <T extends User> UserMatcher<T> user()
- Type Parameters:
T - type of user, to avoid casting
- Returns:
- a matcher which matches any user
- See Also:
UserMatcher
user
public static <T extends User> UserMatcher<T> user(Class<T> type)
- A matcher that matches any user; synonymous with
user() but its argument is used to set the matcher type.
- Type Parameters:
T - type of user, to avoid casting- Parameters:
type - type of user, to avoid casting (this type is not checked at runtime).
- Returns:
- a matcher which matches any user
- See Also:
UserMatcher
userNamed
public static <T extends User> UserMatcher<T> userNamed(String name)
- Type Parameters:
T - type of user, to avoid casting
- Returns:
- a matcher which matches a user with the given name
- See Also:
UserMatcher
group
public static <T extends Group> GroupMatcher<T> group()
- Type Parameters:
T - type of group, to avoid casting
- Returns:
- a matcher which matches any group
- See Also:
GroupMatcher
group
public static <T extends Group> GroupMatcher<T> group(Class<T> type)
- A matcher that matches any group; synonymous with
group() but its argument is used to set the matcher type.
- Type Parameters:
T - type of group, to avoid casting- Parameters:
type - type of group, to avoid casting (this type is not checked at runtime).
- Returns:
- a matcher which matches any group
- See Also:
GroupMatcher
groupNamed
public static <T extends Group> GroupMatcher<T> groupNamed(String name)
- Type Parameters:
T - type of group, to avoid casting
- Returns:
- a matcher which matches a group of the given name
- See Also:
GroupMatcher
directory
public static DirectoryMatcher directory()
- Returns:
- a matcher that matches any directory
Copyright © 2014 Atlassian. All Rights Reserved.