com.stratelia.webactiv.util.publication.ejb
Class PublicationDAOTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.DatabaseTestCase
              extended by org.dbunit.DBTestCase
                  extended by org.dbunit.JndiBasedDBTestCase
                      extended by com.silverpeas.components.model.AbstractTestDao
                          extended by com.stratelia.webactiv.util.publication.ejb.PublicationDAOTest
All Implemented Interfaces:
junit.framework.Test

public class PublicationDAOTest
extends AbstractTestDao

Author:
ehugonnet

Field Summary
 
Fields inherited from class com.silverpeas.components.model.AbstractTestDao
datasource
 
Constructor Summary
PublicationDAOTest()
           
 
Method Summary
protected  String getDatasetFileName()
           
protected  String getTableCreationFileName()
           
 void setUp()
           
 void tearDown()
           
 void testChangeInstanceId()
          Test of changeInstanceId method, of class PublicationDAO.
 void testGetAllPublicationsIDbyUserid()
           
 void testInsertRow()
          Test of insertRow method, of class PublicationDAO.
 void testLoadRow()
          Test of loadRow method, of class PublicationDAO.
 void testSearchByKeywords()
          Test of searchByKeywords method, of class PublicationDAO.
 void testSelectByFatherIds()
          Test of selectByFatherIds method, of class PublicationDAO.
 void testSelectByFatherPK_5args()
          Test of selectByFatherPK method, of class PublicationDAO.
 void testSelectByFatherPK_Connection_NodePK()
          Test of selectByFatherPK method, of class PublicationDAO.
 void testSelectByName()
          Test of selectByName method, of class PublicationDAO.
 void testSelectByNameAndNodeId()
          Test of selectByNameAndNodeId method, of class PublicationDAO.
 void testSelectByPrimaryKey()
          Test of selectByPrimaryKey method, of class PublicationDAO.
 void testSelectByPublicationName()
          Test of selectByPublicationName method, of class PublicationDAO.
 void testSelectByPublicationNameAndNodeId()
          Test of selectByPublicationNameAndNodeId method, of class PublicationDAO.
 void testSelectByStatus_3args_1()
          Test of selectByStatus method, of class PublicationDAO.
 void testSelectByStatus_3args_2()
          Test of selectByStatus method, of class PublicationDAO.
 void testStoreRow()
          Test of storeRow method, of class PublicationDAO.
 
Methods inherited from class com.silverpeas.components.model.AbstractTestDao
cleanData, configureJNDIDatasource, getDataSet, getLookupName, getTableCreationScript, getTearDownOperation, prepareData, setUpClass, tearDownClass
 
Methods inherited from class org.dbunit.JndiBasedDBTestCase
getJNDIProperties, newDatabaseTester
 
Methods inherited from class org.dbunit.DBTestCase
getConnection
 
Methods inherited from class org.dbunit.DatabaseTestCase
closeConnection, getDatabaseTester, getOperationListener, getSetUpOperation, setUpDatabaseConfig
 
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PublicationDAOTest

public PublicationDAOTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class AbstractTestDao
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class AbstractTestDao
Throws:
Exception

testInsertRow

public void testInsertRow()
                   throws Exception
Test of insertRow method, of class PublicationDAO.

Throws:
Exception

testSelectByPrimaryKey

public void testSelectByPrimaryKey()
                            throws Exception
Test of selectByPrimaryKey method, of class PublicationDAO.

Throws:
Exception

testSelectByPublicationName

public void testSelectByPublicationName()
                                 throws Exception
Test of selectByPublicationName method, of class PublicationDAO.

Throws:
Exception

testSelectByPublicationNameAndNodeId

public void testSelectByPublicationNameAndNodeId()
                                          throws Exception
Test of selectByPublicationNameAndNodeId method, of class PublicationDAO.

Throws:
Exception

testSelectByFatherPK_Connection_NodePK

public void testSelectByFatherPK_Connection_NodePK()
                                            throws Exception
Test of selectByFatherPK method, of class PublicationDAO.

Throws:
Exception

testSelectByFatherPK_5args

public void testSelectByFatherPK_5args()
                                throws Exception
Test of selectByFatherPK method, of class PublicationDAO.

Throws:
Exception

testSelectByFatherIds

public void testSelectByFatherIds()
                           throws Exception
Test of selectByFatherIds method, of class PublicationDAO.

Throws:
Exception

testSelectByStatus_3args_1

public void testSelectByStatus_3args_1()
                                throws Exception
Test of selectByStatus method, of class PublicationDAO.

Throws:
Exception

testSelectByStatus_3args_2

public void testSelectByStatus_3args_2()
                                throws Exception
Test of selectByStatus method, of class PublicationDAO.

Throws:
Exception

testSearchByKeywords

public void testSearchByKeywords()
                          throws Exception
Test of searchByKeywords method, of class PublicationDAO.

Throws:
Exception

testLoadRow

public void testLoadRow()
                 throws Exception
Test of loadRow method, of class PublicationDAO.

Throws:
Exception

testChangeInstanceId

public void testChangeInstanceId()
                          throws Exception
Test of changeInstanceId method, of class PublicationDAO.

Throws:
Exception

testStoreRow

public void testStoreRow()
                  throws Exception
Test of storeRow method, of class PublicationDAO.

Throws:
Exception

testSelectByName

public void testSelectByName()
                      throws Exception
Test of selectByName method, of class PublicationDAO.

Throws:
Exception

testSelectByNameAndNodeId

public void testSelectByNameAndNodeId()
                               throws Exception
Test of selectByNameAndNodeId method, of class PublicationDAO.

Throws:
Exception

testGetAllPublicationsIDbyUserid

public void testGetAllPublicationsIDbyUserid()
                                      throws Exception
Throws:
Exception

getDatasetFileName

protected String getDatasetFileName()
Specified by:
getDatasetFileName in class AbstractTestDao

getTableCreationFileName

protected String getTableCreationFileName()
Specified by:
getTableCreationFileName in class AbstractTestDao


Copyright © 2016 Silverpeas. All Rights Reserved.