com.evolveum.midpoint.test
Class AbstractIntegrationTest

java.lang.Object
  extended by com.evolveum.midpoint.test.ldap.OpenDJUnitTestAdapter
      extended by com.evolveum.midpoint.test.AbstractIntegrationTest

public abstract class AbstractIntegrationTest
extends OpenDJUnitTestAdapter

Author:
Radovan Semancik

Field Summary
protected static OpenDJUtil djUtil
          Utility to control embedded OpenDJ instance (start/stop)
protected static javax.xml.bind.JAXBContext jaxbctx
          Unmarshalled resource definition to reach the embedded OpenDJ instance.
protected static boolean repoInitialized
           
protected  RepositoryService repositoryService
           
protected  TaskManager taskManager
           
protected static javax.xml.bind.Unmarshaller unmarshaller
           
 
Fields inherited from class com.evolveum.midpoint.test.ldap.OpenDJUnitTestAdapter
controller, djTemplatePath, ldapDataDir, ldapTmpDir
 
Constructor Summary
AbstractIntegrationTest()
           
 
Method Summary
protected  ObjectType addObjectFromFile(java.lang.String filePath)
           
static void init()
          Initialize embedded OpenDJ instance
abstract  void initRepository()
           
 void initRepositoryConditional()
           
static void shutdown()
          Shutdown embedded OpenDJ instance
protected static
<T> T
unmarshallJaxbFromFile(java.lang.String filePath, java.lang.Class<T> clazz)
           
 
Methods inherited from class com.evolveum.midpoint.test.ldap.OpenDJUnitTestAdapter
startACleanDJ, startACleanDJ, stopDJ
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

djUtil

protected static OpenDJUtil djUtil
Utility to control embedded OpenDJ instance (start/stop)


jaxbctx

protected static javax.xml.bind.JAXBContext jaxbctx
Unmarshalled resource definition to reach the embedded OpenDJ instance. Used for convenience - the tests method may find it handy.


unmarshaller

protected static javax.xml.bind.Unmarshaller unmarshaller

repositoryService

protected RepositoryService repositoryService

repoInitialized

protected static boolean repoInitialized

taskManager

protected TaskManager taskManager
Constructor Detail

AbstractIntegrationTest

public AbstractIntegrationTest()
                        throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException
Method Detail

init

public static void init()
                 throws java.lang.Exception
Initialize embedded OpenDJ instance

Throws:
java.lang.Exception

shutdown

public static void shutdown()
                     throws java.lang.Exception
Shutdown embedded OpenDJ instance

Throws:
java.lang.Exception

initRepositoryConditional

public void initRepositoryConditional()
                               throws java.lang.Exception
Throws:
java.lang.Exception

initRepository

public abstract void initRepository()
                             throws java.lang.Exception
Throws:
java.lang.Exception

addObjectFromFile

protected ObjectType addObjectFromFile(java.lang.String filePath)
                                throws java.lang.Exception
Throws:
java.lang.Exception

unmarshallJaxbFromFile

protected static <T> T unmarshallJaxbFromFile(java.lang.String filePath,
                                              java.lang.Class<T> clazz)
                                   throws java.io.FileNotFoundException,
                                          javax.xml.bind.JAXBException
Throws:
java.io.FileNotFoundException
javax.xml.bind.JAXBException


Copyright © 2011 evolveum. All Rights Reserved.