com.atlassian.crowd.test.matchers
Class CrowdMatchers

java.lang.Object
  extended by com.atlassian.crowd.test.matchers.CrowdMatchers

public class CrowdMatchers
extends Object


Constructor Summary
CrowdMatchers()
           
 
Method Summary
static DirectoryMatcher directory()
           
static
<T extends Group>
GroupMatcher<T>
group()
           
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.
static
<T extends Group>
GroupMatcher<T>
groupNamed(String name)
           
static
<T extends User>
UserMatcher<T>
user()
           
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.
static
<T extends User>
UserMatcher<T>
userNamed(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrowdMatchers

public CrowdMatchers()
Method Detail

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.