Class LdifLoaderForTesting

java.lang.Object
com.atlassian.crowd.acceptance.tests.applications.crowd.LdifLoaderForTesting

public class LdifLoaderForTesting extends Object
Test utility class for restoring LDIF to the embedded ApacheDS server.
  • Constructor Details

    • LdifLoaderForTesting

      public LdifLoaderForTesting()
  • Method Details

    • setLdif

      @Deprecated public static void setLdif(Class<?> testClass, String resourceName) throws IOException
      Deprecated.
      please use LdifLoaderRule to make sure that the last restored LDIF file is tracked correctly
      Restores the specified LDIF file (resource relative to the class) using the crowd-apacheds webapp, located on the same host as represented by CrowdInstanceState.getHostPath()
      Parameters:
      testClass - the class to which the LDIF file is associated
      resourceName - the path to the LDIF file
      Throws:
      IOException - when an error occured while reading the LDIF file