com.silverpeas.thumbnail.model
Class ThumbnailDAOTest

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.silverpeas.thumbnail.model.ThumbnailDAOTest
All Implemented Interfaces:
junit.framework.Test

public class ThumbnailDAOTest
extends AbstractTestDao

Author:
srochet

Field Summary
 
Fields inherited from class com.silverpeas.components.model.AbstractTestDao
datasource
 
Constructor Summary
ThumbnailDAOTest()
           
 
Method Summary
protected  String getDatasetFileName()
           
protected  String getTableCreationFileName()
           
 void testDeleteAllThumbnails()
          Test of delete method, of class ThumbnailDAO.
 void testDeleteThumbnail()
          Test of delete method, of class ThumbnailDAO.
 void testInsertThumbnail()
          Test of insertRow method, of class ThumbnailDAO.
 void testSelectByKey()
          Test of selectByKey method, of class ThumbnailDAO.
 void testUpdateRow()
          Test of update method, of class ThumbnailDAO.
 
Methods inherited from class com.silverpeas.components.model.AbstractTestDao
cleanData, configureJNDIDatasource, getDataSet, getLookupName, getTableCreationScript, getTearDownOperation, prepareData, setUp, setUpClass, tearDown, 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

ThumbnailDAOTest

public ThumbnailDAOTest()
Method Detail

testInsertThumbnail

public void testInsertThumbnail()
                         throws Exception
Test of insertRow method, of class ThumbnailDAO. insert, test by select, delete row

Throws:
Exception

testSelectByKey

public void testSelectByKey()
                     throws Exception
Test of selectByKey method, of class ThumbnailDAO.

Throws:
Exception

testDeleteThumbnail

public void testDeleteThumbnail()
                         throws Exception
Test of delete method, of class ThumbnailDAO. insert row, delete row, test by select

Throws:
Exception

testDeleteAllThumbnails

public void testDeleteAllThumbnails()
                             throws Exception
Test of delete method, of class ThumbnailDAO. insert row, delete row, test by select

Throws:
Exception

testUpdateRow

public void testUpdateRow()
                   throws Exception
Test of update method, of class ThumbnailDAO. insert row, test by select, update row, test by select, delete row

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.