Class CrowdIntegrationTestHelper
java.lang.Object
com.atlassian.integrationtest.confluence.user.persistence.dao.hibernate.CrowdIntegrationTestHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddTestAttributes(com.atlassian.crowd.model.user.UserTemplateWithCredentialAndAttributes user) static Stringstatic voidassertEqualsTestAttributes(com.atlassian.crowd.embedded.api.Attributes attributes) static voidassertEqualsTestAttributes(com.atlassian.crowd.model.group.InternalGroup group) static voidassertEqualsTestAttributes(com.atlassian.crowd.model.user.InternalUser user) static Stringstatic org.hamcrest.Matcher<com.atlassian.crowd.model.group.InternalGroupAttribute>hasAttributeWith(com.atlassian.crowd.model.group.InternalGroup group, String name, String value) static org.hamcrest.Matcher<com.atlassian.crowd.model.user.InternalUserAttribute>hasAttributeWith(com.atlassian.crowd.model.user.InternalUser user, String name, String value) static org.hamcrest.Matcher<Iterable<? extends com.atlassian.crowd.model.group.InternalGroupAttribute>>hasTestAttributes(com.atlassian.crowd.model.group.InternalGroup group) static org.hamcrest.Matcher<Iterable<? extends com.atlassian.crowd.model.user.InternalUserAttribute>>hasTestAttributes(com.atlassian.crowd.model.user.InternalUser user) static org.hamcrest.Matcher<com.atlassian.crowd.model.user.User>hasUserWithProperties(String name, long directoryId) static Stringstatic com.atlassian.crowd.model.application.ApplicationImplsaveTestApplication(org.hibernate.SessionFactory sessionFactory, String applicationName) static voidsaveTestAttributes(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.model.group.InternalGroup group) static voidsaveTestAttributes(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.model.user.InternalUser user) static com.atlassian.crowd.model.directory.DirectoryImplsaveTestDirectory(org.hibernate.SessionFactory sessionFactory) static com.atlassian.crowd.model.directory.DirectoryImplsaveTestDirectory(org.hibernate.SessionFactory sessionFactory, String directoryName) static com.atlassian.crowd.model.directory.DirectoryImplsaveTestDirectory(org.hibernate.SessionFactory sessionFactory, String directoryName, Set<com.atlassian.crowd.embedded.api.OperationType> allowedOperations) static com.atlassian.crowd.model.group.InternalGroupsaveTestGroup(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.embedded.api.Directory directory) static com.atlassian.crowd.model.group.InternalGroupsaveTestGroup(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.embedded.api.Directory directory, String name) static com.atlassian.crowd.model.user.InternalUsersaveTestUser(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.embedded.api.Directory directory) static com.atlassian.crowd.model.user.InternalUsersaveTestUser(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.model.user.User testUserData, com.atlassian.crowd.embedded.api.Directory directory)
-
Constructor Details
-
CrowdIntegrationTestHelper
public CrowdIntegrationTestHelper()
-
-
Method Details
-
saveTestDirectory
public static com.atlassian.crowd.model.directory.DirectoryImpl saveTestDirectory(org.hibernate.SessionFactory sessionFactory) -
saveTestDirectory
public static com.atlassian.crowd.model.directory.DirectoryImpl saveTestDirectory(org.hibernate.SessionFactory sessionFactory, String directoryName) -
saveTestDirectory
-
saveTestApplication
public static com.atlassian.crowd.model.application.ApplicationImpl saveTestApplication(org.hibernate.SessionFactory sessionFactory, String applicationName) -
saveTestUser
public static com.atlassian.crowd.model.user.InternalUser saveTestUser(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.embedded.api.Directory directory) -
saveTestUser
public static com.atlassian.crowd.model.user.InternalUser saveTestUser(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.model.user.User testUserData, com.atlassian.crowd.embedded.api.Directory directory) -
saveTestGroup
public static com.atlassian.crowd.model.group.InternalGroup saveTestGroup(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.embedded.api.Directory directory) -
saveTestGroup
public static com.atlassian.crowd.model.group.InternalGroup saveTestGroup(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.embedded.api.Directory directory, String name) -
addTestAttributes
public static void addTestAttributes(com.atlassian.crowd.model.user.UserTemplateWithCredentialAndAttributes user) -
saveTestAttributes
public static void saveTestAttributes(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.model.group.InternalGroup group) -
saveTestAttributes
public static void saveTestAttributes(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.model.user.InternalUser user) -
assertEqualsTestAttributes
public static void assertEqualsTestAttributes(com.atlassian.crowd.model.user.InternalUser user) -
assertEqualsTestAttributes
public static void assertEqualsTestAttributes(com.atlassian.crowd.model.group.InternalGroup group) -
hasTestAttributes
public static org.hamcrest.Matcher<Iterable<? extends com.atlassian.crowd.model.user.InternalUserAttribute>> hasTestAttributes(com.atlassian.crowd.model.user.InternalUser user) -
hasTestAttributes
public static org.hamcrest.Matcher<Iterable<? extends com.atlassian.crowd.model.group.InternalGroupAttribute>> hasTestAttributes(com.atlassian.crowd.model.group.InternalGroup group) -
hasAttributeWith
-
hasAttributeWith
-
assertEqualsTestAttributes
public static void assertEqualsTestAttributes(com.atlassian.crowd.embedded.api.Attributes attributes) -
hasUserWithProperties
public static org.hamcrest.Matcher<com.atlassian.crowd.model.user.User> hasUserWithProperties(String name, long directoryId) -
anotherGroupName
-
parentGroupName
-
childGroupName
-