org.silverpeas.ldap
Class OpenDJRule

java.lang.Object
  extended by org.silverpeas.ldap.OpenDJRule
All Implemented Interfaces:
org.junit.rules.TestRule

public class OpenDJRule
extends Object
implements org.junit.rules.TestRule

JUnit ClassRule to start an embedded OpenDJ server in a JUnit Test. Must be used with the CreateLdapServer annotation

Author:
ehugonnet

Constructor Summary
OpenDJRule()
           
 
Method Summary
 org.junit.runners.model.Statement apply(org.junit.runners.model.Statement stmnt, org.junit.runner.Description d)
           
 org.opends.server.api.Backend initializeTestBackend(boolean createBaseEntry, org.opends.server.types.DN baseDN, String backendId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenDJRule

public OpenDJRule()
Method Detail

apply

public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement stmnt,
                                               org.junit.runner.Description d)
Specified by:
apply in interface org.junit.rules.TestRule

initializeTestBackend

public org.opends.server.api.Backend initializeTestBackend(boolean createBaseEntry,
                                                           org.opends.server.types.DN baseDN,
                                                           String backendId)
                                                    throws org.opends.server.types.DirectoryException,
                                                           org.opends.server.config.ConfigException,
                                                           org.opends.server.types.InitializationException
Throws:
org.opends.server.types.DirectoryException
org.opends.server.config.ConfigException
org.opends.server.types.InitializationException


Copyright © 2016 Silverpeas. All Rights Reserved.