java.lang.Object
com.atlassian.integrationtest.confluence.user.persistence.dao.hibernate.CrowdIntegrationTestHelper

public class CrowdIntegrationTestHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addTestAttributes(com.atlassian.crowd.model.user.UserTemplateWithCredentialAndAttributes user)
     
    static String
     
    static void
    assertEqualsTestAttributes(com.atlassian.crowd.embedded.api.Attributes attributes)
     
    static void
    assertEqualsTestAttributes(com.atlassian.crowd.model.group.InternalGroup group)
     
    static void
    assertEqualsTestAttributes(com.atlassian.crowd.model.user.InternalUser user)
     
    static String
     
    static 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 String
     
    static com.atlassian.crowd.model.application.ApplicationImpl
    saveTestApplication(org.hibernate.SessionFactory sessionFactory, String applicationName)
     
    static void
    saveTestAttributes(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.model.group.InternalGroup group)
     
    static void
    saveTestAttributes(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.model.user.InternalUser user)
     
    static com.atlassian.crowd.model.directory.DirectoryImpl
    saveTestDirectory(org.hibernate.SessionFactory sessionFactory)
     
    static com.atlassian.crowd.model.directory.DirectoryImpl
    saveTestDirectory(org.hibernate.SessionFactory sessionFactory, String directoryName)
     
    static com.atlassian.crowd.model.directory.DirectoryImpl
    saveTestDirectory(org.hibernate.SessionFactory sessionFactory, String directoryName, Set<com.atlassian.crowd.embedded.api.OperationType> allowedOperations)
     
    static com.atlassian.crowd.model.group.InternalGroup
    saveTestGroup(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.embedded.api.Directory directory)
     
    static com.atlassian.crowd.model.group.InternalGroup
    saveTestGroup(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.embedded.api.Directory directory, String name)
     
    static com.atlassian.crowd.model.user.InternalUser
    saveTestUser(org.hibernate.SessionFactory sessionFactory, com.atlassian.crowd.embedded.api.Directory directory)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static com.atlassian.crowd.model.directory.DirectoryImpl saveTestDirectory(org.hibernate.SessionFactory sessionFactory, String directoryName, Set<com.atlassian.crowd.embedded.api.OperationType> allowedOperations)
    • 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

      public static org.hamcrest.Matcher<com.atlassian.crowd.model.user.InternalUserAttribute> hasAttributeWith(com.atlassian.crowd.model.user.InternalUser user, String name, String value)
    • hasAttributeWith

      public static org.hamcrest.Matcher<com.atlassian.crowd.model.group.InternalGroupAttribute> hasAttributeWith(com.atlassian.crowd.model.group.InternalGroup group, String name, String value)
    • 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

      public static String anotherGroupName()
    • parentGroupName

      public static String parentGroupName()
    • childGroupName

      public static String childGroupName()