pt.moredata.dao.core
Class GenericDAOTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bypt.moredata.tests.TestCase
              extended bypt.moredata.dao.core.GenericDAOTest
All Implemented Interfaces:
junit.framework.Test

public class GenericDAOTest
extends TestCase

GenericDAOTest.java Company MoreData

Version:
$Revision: 1.3 $
Author:
Paulo Carmo, Ricardo Amaro

Field Summary
 int afterApplyCount
          Description of the Field
 int afterDeleteCount
          Description of the Field
 int afterInsertCount
          Description of the Field
 int afterQueryCount
          Description of the Field
 int afterRowAppliedCount
          Description of the Field
 int afterUpdateCount
          Description of the Field
 int beforeApplyCount
          Description of the Field
 int beforeDeleteCount
          Description of the Field
 int beforeInsertCount
          Description of the Field
 int beforeQueryCount
          Description of the Field
 int beforeRowAppliedCount
          Description of the Field
 int beforeUpdateCount
          Description of the Field
 int rowRetrievedCount
          Description of the Field
 
Constructor Summary
GenericDAOTest(java.lang.String name)
          Constructor for the GenericDAOTest object
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
          Executado antes de cada método do test case
static junit.framework.Test suite()
          A unit test suite for JUnit
protected  void tearDown()
          Limpa as variaveis
 void testAddAllColumnsFromTable()
          A unit test for JUnit
 void testAddApplyListener()
          A unit test for JUnit
 void testAddColumn()
          A unit test for JUnit
 void testAddDeleteListener()
          A unit test for JUnit
 void testAddDescColumn()
          A unit test for JUnit
 void testAddInsertListener()
          A unit test for JUnit
 void testAddJoin()
          A unit test for JUnit
 void testAddJoinClause()
          Test of addJoinClause method, of class pt.moredata.dao.GenericDAO.
 void testAddMetaField()
          A unit test for JUnit
 void testAddOrderBy()
          A unit test for JUnit
 void testAddPkColumn()
          A unit test for JUnit
 void testAddPkToListMap()
          A unit test for JUnit
 void testAddQueryListener()
          A unit test for JUnit
 void testAddRowAppliedListener()
          A unit test for JUnit
 void testAddRowRetrivedListener()
          A unit test for JUnit
 void testAddSecTable()
          A unit test for JUnit
 void testAddTable()
          Test of addTable method, of class pt.moredata.dao.GenericDAO.
 void testAddUpdateListener()
          A unit test for JUnit
 void testApply()
          A unit test for JUnit
 void testApplyEvents()
          Este metodo testa a geracao de eventos do metodo apply()
 void testApplyWithDynasetColumn()
          A unit test for JUnit
 void testBackupPk()
          A unit test for JUnit
 void testBuildDelete()
          A unit test for JUnit
 void testBuildIndividualUpdate()
          A unit test for JUnit
 void testBuildInsert()
          A unit test for JUnit
 void testBuildLock()
          A unit test for JUnit
 void testBuildQuery()
          A unit test for JUnit
 void testBuildSuperSetUpdate()
          A unit test for JUnit
 void testClear()
          A unit test for JUnit
 void testClearAllJoins()
          A unit test for JUnit
 void testClearAllSecTables()
          A unit test for JUnit
 void testClearJoin()
          A unit test for JUnit
 void testClearJoinClauses()
          Test of clearJoinClauses method, of class pt.moredata.dao.GenericDAO.
 void testClearMetaFieldAt()
          A unit test for JUnit
 void testClearMetaFields()
          A unit test for JUnit
 void testClearOrderBy()
          A unit test for JUnit
 void testClearRecordSet()
          A unit test for JUnit
 void testClearSecTable()
          A unit test for JUnit
 void testClearSecTableAt()
          A unit test for JUnit
 void testClearWhereStr()
          A unit test for JUnit
 void testDelete()
          A unit test for JUnit
 void testDeleteEvents()
          Este metodo testa a geracao de eventos do metodo delete()
 void testDeleteFromDAO()
          Test of deleteFromDAO method, of class pt.moredata.dao.GenericDAO.
 void testDeleteFromDataSource()
          Test of deleteFromDataSource method, of class pt.moredata.dao.GenericDAO.
 void testDeleteRow()
          A unit test for JUnit
 void testDump()
          A unit test for JUnit
 void testDumpMetaFields()
          A unit test for JUnit
 void testExecuteDeleteFor()
          A unit test for JUnit
 void testExecuteInsertFor()
          A unit test for JUnit
 void testExecuteLockFor()
          A unit test for JUnit
 void testExecuteQuery()
          A unit test for JUnit
 void testExecuteUpdateFor()
          A unit test for JUnit
 void testGetBackupCellAt()
          A unit test for JUnit
 void testGetBadRowNumber()
          A unit test for JUnit
 void testGetCellAt()
          A unit test for JUnit
 void testGetCellByPk()
          A unit test for JUnit
 void testGetCellFromPk()
          A unit test for JUnit
 void testGetColumnName()
          A unit test for JUnit
 void testGetColumnNames()
          A unit test for JUnit
 void testGetColumnNumber()
          A unit test for JUnit
 void testGetColumns()
          A unit test for JUnit
 void testGetDataMetaField()
          A unit test for JUnit
 void testGetDataSourceAction()
          A unit test for JUnit
 void testGetDataSourcePk()
          A unit test for JUnit
 void testGetDbType()
          A unit test for JUnit
 void testGetDSource()
          A unit test for JUnit
 void testGetMetaField()
          Test of getMetaField method, of class pt.moredata.dao.GenericDAO.
 void testGetOrderBy()
          A unit test for JUnit
 void testGetPKName()
          A unit test for JUnit
 void testGetPKNameAndValue()
          A unit test for JUnit
 void testGetPKValue()
          A unit test for JUnit
 void testGetQueryPolicy()
          Test of getQueryPolicy method, of class pt.moredata.dao.GenericDAO.
 void testGetRecordSet()
          Test of getRecordSet method, of class pt.moredata.dao.GenericDAO.
 void testGetRowFromPk()
          A unit test for JUnit
 void testGetRows()
          A unit test for JUnit
 void testGetTableInfo()
          A unit test for JUnit
 void testGetTableName()
          A unit test for JUnit
 void testGetUpdateType()
          A unit test for JUnit
 void testGetWhereStr()
          A unit test for JUnit
 void testHasPrimaryKey()
          A unit test for JUnit
 void testHowManySecTables()
          A unit test for JUnit
 void testInitPktoListMap()
          A unit test for JUnit
 void testInsert()
          A unit test for JUnit
 void testInsertEvents()
          Este metodo testa a geracao de eventos do metodo insert()
 void testIsCellModified()
          A unit test for JUnit
 void testIsColumn()
          A unit test for JUnit
 void testIsDeleted()
          A unit test for JUnit
 void testIsDescColumn()
          A unit test for JUnit
 void testIsInsertColumn()
          A unit test for JUnit
 void testIsModified()
          A unit test for JUnit
 void testIsNewRow()
          A unit test for JUnit
 void testIsPkPart()
          A unit test for JUnit
 void testIsPrimaryKey()
          A unit test for JUnit
 void testIsUpdateColumn()
          A unit test for JUnit
 void testMissingTest()
          Este teste verifica se esta classe de testes implementa pelo menos um teste por cada metodo public da classe que esta a ser testada.
 void testPrepareDelete()
          A unit test for JUnit
 void testPrepareInsert()
          A unit test for JUnit
 void testPrepareLock()
          A unit test for JUnit
 void testPrepareQuery()
          A unit test for JUnit
 void testPrepareUpdate()
          A unit test for JUnit
 void testQuery()
          A unit test for JUnit
 void testQueryByPk()
          A unit test for JUnit
 void testQueryEvents()
          Este metodo testa a geracao de eventos do metodo query()
 void testQueryWithDynasetColumn()
          A unit test for JUnit
 void testRebuildPkMap()
          A unit test for JUnit
 void testRemoveApplyListener()
          A unit test for JUnit
 void testRemoveDeleteListener()
          A unit test for JUnit
 void testRemoveInsertListener()
          A unit test for JUnit
 void testRemoveQueryListener()
          A unit test for JUnit
 void testRemoveRowAppliedListener()
          A unit test for JUnit
 void testRemoveRowRetrivedListener()
          A unit test for JUnit
 void testRemoveTable()
          Test of removeTable method, of class pt.moredata.dao.GenericDAO.
 void testRemoveUpdateListener()
          A unit test for JUnit
 void testSetCellAt()
          A unit test for JUnit
 void testSetCounterColumn()
          A unit test for JUnit
 void testSetDataSource()
          A unit test for JUnit
 void testSetDefaultValue()
          Test of setDefaultValue method, of class pt.moredata.dao.GenericDAO.
 void testSetDeleted()
          A unit test for JUnit
 void testSetDistinctQuery()
          A unit test for JUnit
 void testSetFixedValue()
          A unit test for JUnit
 void testSetMainTable()
          A unit test for JUnit
 void testSetNewRow()
          A unit test for JUnit
 void testSetOrderBy()
          A unit test for JUnit
 void testSetQueryPolicy()
          Test of setQueryPolicy method, of class pt.moredata.dao.GenericDAO.
 void testSetRecordValuesForDelete()
          A unit test for JUnit
 void testSetRecordValuesForInsert()
          A unit test for JUnit
 void testSetRecordValuesForUpdate()
          A unit test for JUnit
 void testSetTableName()
          A unit test for JUnit
 void testSetUpdateType()
          A unit test for JUnit
 void testSetWhereStr()
          A unit test for JUnit
 void testSort()
          A unit test for JUnit
 void testUpdate()
          A unit test for JUnit
 void testUpdateEvents()
          Este metodo testa a geracao de eventos do metodo update()
 void testUpdateWithDynasetColumn()
          A unit test for JUnit
 
Methods inherited from class pt.moredata.tests.TestCase
assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, main, testMissingTest
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

beforeApplyCount

public int beforeApplyCount
Description of the Field


beforeDeleteCount

public int beforeDeleteCount
Description of the Field


beforeInsertCount

public int beforeInsertCount
Description of the Field


beforeQueryCount

public int beforeQueryCount
Description of the Field


beforeRowAppliedCount

public int beforeRowAppliedCount
Description of the Field


beforeUpdateCount

public int beforeUpdateCount
Description of the Field


afterApplyCount

public int afterApplyCount
Description of the Field


afterDeleteCount

public int afterDeleteCount
Description of the Field


afterInsertCount

public int afterInsertCount
Description of the Field


afterQueryCount

public int afterQueryCount
Description of the Field


afterRowAppliedCount

public int afterRowAppliedCount
Description of the Field


afterUpdateCount

public int afterUpdateCount
Description of the Field


rowRetrievedCount

public int rowRetrievedCount
Description of the Field

Constructor Detail

GenericDAOTest

public GenericDAOTest(java.lang.String name)
Constructor for the GenericDAOTest object

Parameters:
name - Description of the Parameter
Method Detail

setUp

protected void setUp()
Executado antes de cada método do test case


tearDown

protected void tearDown()
Limpa as variaveis


suite

public static junit.framework.Test suite()
A unit test suite for JUnit

Returns:
The test suite

testMissingTest

public void testMissingTest()
                     throws java.lang.SecurityException
Este teste verifica se esta classe de testes implementa pelo menos um teste por cada metodo public da classe que esta a ser testada.

Throws:
java.lang.SecurityException - Description of the Exception

testGetDbType

public void testGetDbType()
A unit test for JUnit


testAddAllColumnsFromTable

public void testAddAllColumnsFromTable()
A unit test for JUnit


testAddColumn

public void testAddColumn()
A unit test for JUnit


testAddDescColumn

public void testAddDescColumn()
A unit test for JUnit


testAddMetaField

public void testAddMetaField()
A unit test for JUnit


testAddOrderBy

public void testAddOrderBy()
A unit test for JUnit


testAddPkColumn

public void testAddPkColumn()
A unit test for JUnit


testAddSecTable

public void testAddSecTable()
A unit test for JUnit


testClearAllJoins

public void testClearAllJoins()
A unit test for JUnit


testClearJoin

public void testClearJoin()
A unit test for JUnit


testAddJoin

public void testAddJoin()
A unit test for JUnit


testSetWhereStr

public void testSetWhereStr()
A unit test for JUnit


testClearWhereStr

public void testClearWhereStr()
A unit test for JUnit


testClearMetaFields

public void testClearMetaFields()
A unit test for JUnit


testClearMetaFieldAt

public void testClearMetaFieldAt()
A unit test for JUnit


testIsPrimaryKey

public void testIsPrimaryKey()
A unit test for JUnit


testHasPrimaryKey

public void testHasPrimaryKey()
A unit test for JUnit


testBackupPk

public void testBackupPk()
A unit test for JUnit


testClear

public void testClear()
A unit test for JUnit


testClearOrderBy

public void testClearOrderBy()
A unit test for JUnit


testClearRecordSet

public void testClearRecordSet()
A unit test for JUnit


testIsPkPart

public void testIsPkPart()
A unit test for JUnit


testDelete

public void testDelete()
A unit test for JUnit


testDeleteRow

public void testDeleteRow()
A unit test for JUnit


testGetBackupCellAt

public void testGetBackupCellAt()
A unit test for JUnit


testGetBadRowNumber

public void testGetBadRowNumber()
A unit test for JUnit


testGetCellAt

public void testGetCellAt()
A unit test for JUnit


testGetCellByPk

public void testGetCellByPk()
A unit test for JUnit


testGetCellFromPk

public void testGetCellFromPk()
A unit test for JUnit


testGetColumnName

public void testGetColumnName()
A unit test for JUnit


testGetColumnNames

public void testGetColumnNames()
A unit test for JUnit


testGetColumnNumber

public void testGetColumnNumber()
                         throws DAORuntimeException
A unit test for JUnit

Throws:
DAORuntimeException - Description of the Exception

testGetColumns

public void testGetColumns()
A unit test for JUnit


testAddPkToListMap

public void testAddPkToListMap()
A unit test for JUnit


testSetTableName

public void testSetTableName()
A unit test for JUnit


testGetDSource

public void testGetDSource()
A unit test for JUnit


testGetDataSourceAction

public void testGetDataSourceAction()
A unit test for JUnit


testGetDataSourcePk

public void testGetDataSourcePk()
A unit test for JUnit


testGetDataMetaField

public void testGetDataMetaField()
A unit test for JUnit


testGetOrderBy

public void testGetOrderBy()
A unit test for JUnit


testSetOrderBy

public void testSetOrderBy()
A unit test for JUnit


testGetPKName

public void testGetPKName()
A unit test for JUnit


testGetPKNameAndValue

public void testGetPKNameAndValue()
A unit test for JUnit


testGetPKValue

public void testGetPKValue()
A unit test for JUnit


testGetRowFromPk

public void testGetRowFromPk()
A unit test for JUnit


testGetRows

public void testGetRows()
A unit test for JUnit


testGetTableInfo

public void testGetTableInfo()
A unit test for JUnit


testGetTableName

public void testGetTableName()
A unit test for JUnit


testGetUpdateType

public void testGetUpdateType()
A unit test for JUnit


testSetUpdateType

public void testSetUpdateType()
A unit test for JUnit


testGetWhereStr

public void testGetWhereStr()
A unit test for JUnit


testInsert

public void testInsert()
A unit test for JUnit


testQueryByPk

public void testQueryByPk()
A unit test for JUnit


testIsCellModified

public void testIsCellModified()
A unit test for JUnit


testIsColumn

public void testIsColumn()
A unit test for JUnit


testIsDeleted

public void testIsDeleted()
A unit test for JUnit


testIsDescColumn

public void testIsDescColumn()
A unit test for JUnit


testIsInsertColumn

public void testIsInsertColumn()
A unit test for JUnit


testIsModified

public void testIsModified()
A unit test for JUnit


testIsNewRow

public void testIsNewRow()
A unit test for JUnit


testIsUpdateColumn

public void testIsUpdateColumn()
A unit test for JUnit


testSetCellAt

public void testSetCellAt()
A unit test for JUnit


testSetCounterColumn

public void testSetCounterColumn()
A unit test for JUnit


testSetDataSource

public void testSetDataSource()
A unit test for JUnit


testSetDeleted

public void testSetDeleted()
A unit test for JUnit


testSetFixedValue

public void testSetFixedValue()
A unit test for JUnit


testClearAllSecTables

public void testClearAllSecTables()
A unit test for JUnit


testHowManySecTables

public void testHowManySecTables()
A unit test for JUnit


testClearSecTableAt

public void testClearSecTableAt()
A unit test for JUnit


testClearSecTable

public void testClearSecTable()
A unit test for JUnit


testSetMainTable

public void testSetMainTable()
A unit test for JUnit


testSetNewRow

public void testSetNewRow()
A unit test for JUnit


testDumpMetaFields

public void testDumpMetaFields()
A unit test for JUnit


testDump

public void testDump()
A unit test for JUnit


testSort

public void testSort()
A unit test for JUnit


testGetQueryPolicy

public void testGetQueryPolicy()
Test of getQueryPolicy method, of class pt.moredata.dao.GenericDAO.


testSetQueryPolicy

public void testSetQueryPolicy()
Test of setQueryPolicy method, of class pt.moredata.dao.GenericDAO.


testAddTable

public void testAddTable()
Test of addTable method, of class pt.moredata.dao.GenericDAO.


testRemoveTable

public void testRemoveTable()
Test of removeTable method, of class pt.moredata.dao.GenericDAO.


testAddJoinClause

public void testAddJoinClause()
Test of addJoinClause method, of class pt.moredata.dao.GenericDAO.


testClearJoinClauses

public void testClearJoinClauses()
Test of clearJoinClauses method, of class pt.moredata.dao.GenericDAO.


testDeleteFromDataSource

public void testDeleteFromDataSource()
Test of deleteFromDataSource method, of class pt.moredata.dao.GenericDAO.


testDeleteFromDAO

public void testDeleteFromDAO()
Test of deleteFromDAO method, of class pt.moredata.dao.GenericDAO.


testGetMetaField

public void testGetMetaField()
Test of getMetaField method, of class pt.moredata.dao.GenericDAO.


testGetRecordSet

public void testGetRecordSet()
Test of getRecordSet method, of class pt.moredata.dao.GenericDAO.


testSetDefaultValue

public void testSetDefaultValue()
Test of setDefaultValue method, of class pt.moredata.dao.GenericDAO.


testInitPktoListMap

public void testInitPktoListMap()
A unit test for JUnit


testBuildQuery

public void testBuildQuery()
A unit test for JUnit


testPrepareQuery

public void testPrepareQuery()
A unit test for JUnit


testExecuteQuery

public void testExecuteQuery()
                      throws java.sql.SQLException
A unit test for JUnit

Throws:
java.sql.SQLException - Description of the Exception

testBuildSuperSetUpdate

public void testBuildSuperSetUpdate()
A unit test for JUnit


testBuildIndividualUpdate

public void testBuildIndividualUpdate()
A unit test for JUnit


testPrepareUpdate

public void testPrepareUpdate()
A unit test for JUnit


testExecuteUpdateFor

public void testExecuteUpdateFor()
A unit test for JUnit


testSetRecordValuesForUpdate

public void testSetRecordValuesForUpdate()
                                  throws java.sql.SQLException
A unit test for JUnit

Throws:
java.sql.SQLException - Description of the Exception

testSetRecordValuesForInsert

public void testSetRecordValuesForInsert()
                                  throws java.sql.SQLException
A unit test for JUnit

Throws:
java.sql.SQLException - Description of the Exception

testSetRecordValuesForDelete

public void testSetRecordValuesForDelete()
                                  throws java.sql.SQLException
A unit test for JUnit

Throws:
java.sql.SQLException - Description of the Exception

testBuildInsert

public void testBuildInsert()
A unit test for JUnit


testPrepareInsert

public void testPrepareInsert()
A unit test for JUnit


testExecuteInsertFor

public void testExecuteInsertFor()
A unit test for JUnit


testBuildDelete

public void testBuildDelete()
A unit test for JUnit


testPrepareDelete

public void testPrepareDelete()
A unit test for JUnit


testExecuteDeleteFor

public void testExecuteDeleteFor()
A unit test for JUnit


testBuildLock

public void testBuildLock()
A unit test for JUnit


testPrepareLock

public void testPrepareLock()
A unit test for JUnit


testExecuteLockFor

public void testExecuteLockFor()
A unit test for JUnit


testRebuildPkMap

public void testRebuildPkMap()
                      throws java.sql.SQLException
A unit test for JUnit

Throws:
java.sql.SQLException - Description of the Exception

testAddApplyListener

public void testAddApplyListener()
A unit test for JUnit


testAddDeleteListener

public void testAddDeleteListener()
A unit test for JUnit


testAddInsertListener

public void testAddInsertListener()
A unit test for JUnit


testAddQueryListener

public void testAddQueryListener()
A unit test for JUnit


testAddUpdateListener

public void testAddUpdateListener()
A unit test for JUnit


testAddRowAppliedListener

public void testAddRowAppliedListener()
A unit test for JUnit


testAddRowRetrivedListener

public void testAddRowRetrivedListener()
A unit test for JUnit


testRemoveApplyListener

public void testRemoveApplyListener()
A unit test for JUnit


testRemoveDeleteListener

public void testRemoveDeleteListener()
A unit test for JUnit


testRemoveInsertListener

public void testRemoveInsertListener()
A unit test for JUnit


testRemoveQueryListener

public void testRemoveQueryListener()
A unit test for JUnit


testRemoveUpdateListener

public void testRemoveUpdateListener()
A unit test for JUnit


testRemoveRowAppliedListener

public void testRemoveRowAppliedListener()
A unit test for JUnit


testRemoveRowRetrivedListener

public void testRemoveRowRetrivedListener()
A unit test for JUnit


testApplyEvents

public void testApplyEvents()
Este metodo testa a geracao de eventos do metodo apply()


testDeleteEvents

public void testDeleteEvents()
Este metodo testa a geracao de eventos do metodo delete()


testInsertEvents

public void testInsertEvents()
Este metodo testa a geracao de eventos do metodo insert()


testQueryEvents

public void testQueryEvents()
Este metodo testa a geracao de eventos do metodo query()


testUpdateEvents

public void testUpdateEvents()
Este metodo testa a geracao de eventos do metodo update()


testSetDistinctQuery

public void testSetDistinctQuery()
A unit test for JUnit


testQuery

public void testQuery()
A unit test for JUnit


testQueryWithDynasetColumn

public void testQueryWithDynasetColumn()
A unit test for JUnit


testUpdate

public void testUpdate()
A unit test for JUnit


testUpdateWithDynasetColumn

public void testUpdateWithDynasetColumn()
A unit test for JUnit


testApply

public void testApply()
A unit test for JUnit


testApplyWithDynasetColumn

public void testApplyWithDynasetColumn()
A unit test for JUnit


main

public static void main(java.lang.String[] args)