com.silverpeas.components.model
Class AbstractSpringJndiDaoTest

java.lang.Object
  extended by com.silverpeas.components.model.AbstractSpringJndiDaoTest

public abstract class AbstractSpringJndiDaoTest
extends Object

Author:
ehugonnet

Constructor Summary
AbstractSpringJndiDaoTest()
           
 
Method Summary
 void after()
           
protected  org.dbunit.dataset.IDataSet getDataSet()
           
protected abstract  String getDatasetFileName()
           
protected  org.dbunit.operation.DatabaseOperation getSetUpOperation()
           
protected  org.dbunit.operation.DatabaseOperation getTearDownOperation()
           
 void init()
           
protected static void rebind(InitialContext ic, String jndiName, Object ref)
          Workaround to be able to use Sun's JNDI file system provider on Unix
static void setUpClass()
           
static void tearDownClass()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSpringJndiDaoTest

public AbstractSpringJndiDaoTest()
Method Detail

setUpClass

public static void setUpClass()
                       throws Exception
Throws:
Exception

tearDownClass

public static void tearDownClass()
                          throws Exception
Throws:
Exception

rebind

protected static void rebind(InitialContext ic,
                             String jndiName,
                             Object ref)
                      throws NamingException
Workaround to be able to use Sun's JNDI file system provider on Unix

Parameters:
ic - : the JNDI initial context
jndiName - : the binding name
ref - : the reference to be bound
Throws:
NamingException

getTearDownOperation

protected org.dbunit.operation.DatabaseOperation getTearDownOperation()
                                                               throws Exception
Throws:
Exception

getSetUpOperation

protected org.dbunit.operation.DatabaseOperation getSetUpOperation()
                                                            throws Exception
Throws:
Exception

init

public void init()
          throws Exception
Throws:
Exception

after

public void after()
           throws Exception
Throws:
Exception

getDataSet

protected org.dbunit.dataset.IDataSet getDataSet()
                                          throws Exception
Throws:
Exception

getDatasetFileName

protected abstract String getDatasetFileName()


Copyright © 2016 Silverpeas. All Rights Reserved.