org.melati.poem.test
Class PoemDatabaseTest

Package class diagram package PoemDatabaseTest
java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.melati.poem.test.PoemTestCase
              extended by org.melati.poem.test.PoemDatabaseTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
PoemDatabaseTest

public class PoemDatabaseTest
extends PoemTestCase

Test the features of all Poem databases.

Author:
timp

Field Summary
 
Fields inherited from class org.melati.poem.test.PoemTestCase
maxTrans, result
 
Constructor Summary
PoemDatabaseTest(String arg0)
          Constructor for PoemTest.
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAddConstraints()
           
 void testAdministerCapability()
           
 void testAdministratorUser()
           
 void testBeginExclusiveLock()
           
 void testBeginSession()
           
 void testColumns()
          Note this is here so that we have the expected number of columns.
 void testConnect()
           
 void testDisconnect()
           
 void testDump()
           
 void testDumpCacheAnalysis()
           
 void testEndExclusiveLock()
           
 void testEndSession()
           
 void testGetCanAdminister()
           
 void testGetCapabilityTable()
           
 void testGetColumnInfoTable()
           
 void testGetCommittedConnection()
           
 void testGetDbms()
           
 void testGetDisplayTables()
           
 void testGetFreeTransactionsCount()
           
 void testGetGroupCapabilityTable()
           
 void testGetGroupMembershipTable()
           
 void testGetGroupTable()
           
 void testGetSettingTable()
           
 void testGetTable()
           
 void testGetTableCategoryTable()
           
 void testGetTableInfoTable()
           
 void testGetTransactionsCount()
           
 void testGetUserTable()
           
 void testGivesCapabilitySQL()
           
 void testGuestAccessToken()
           
 void testGuestUser()
           
 void testHasCapability()
           
 void testInSession()
           
 void testIsFree()
           
 void testLogCommits()
           
 void testLogSQL()
           
 void testPoemTransaction()
           
 void testQuotedName()
           
 void testReferencesToPersistent()
           
 void testReferencesToTable()
           
 void testSetCanAdminister()
           
 void testSetLogCommits()
           
 void testSetLogSQL()
           
 void testSetTransactionsMax()
           
 void testShutdown()
           
 void testSqlQuery()
           
 void testSqlQueryThrows()
           
 void testSqlUpdate()
          Need to be in separate transactions on postgresql.
 void testSqlUpdate1()
          Need to be in separate transactions on postgresql.
 void testSqlUpdate2()
          Need to be in separate transactions on postgresql.
 void testTables()
          Note this is here so that we have the expected number of tables.
 void testToString()
           
 void testTransaction()
           
 void testTransactionsMax()
           
 void testTrimCache()
           
 void testUncacheContents()
           
 
Methods inherited from class org.melati.poem.test.PoemTestCase
assertEquals, assertEquals, assertEquals, checkColumns, checkDbUnchanged, checkTables, checkTablesAndColumns, databaseUnchanged, dropTable, dumpTable, getDatabase, getDatabaseName, getDb, getDb, getName, getOrDie, getProperties, getPropertiesFileName, getUserToRunAs, run, runTest, setDatabaseName, setName, setPropertiesFileName, setUserToRunAs, testNothing
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, runBare, 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, 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
 
Methods inherited from interface junit.framework.Test
countTestCases
 

Constructor Detail

PoemDatabaseTest

public PoemDatabaseTest(String arg0)
Constructor for PoemTest.

Parameters:
arg0 -
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class PoemTestCase
Throws:
Exception
See Also:
TestCase#setUp()

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class PoemTestCase
Throws:
Exception
See Also:
TestCase#tearDown()

testGetUserTable

public void testGetUserTable()
See Also:
PoemDatabaseBase.getUserTable(), Database.getTable(String)

testTransactionsMax

public void testTransactionsMax()
See Also:
Database.transactionsMax()

testGetDisplayTables

public void testGetDisplayTables()
See Also:
Database.getDisplayTables()

testSqlQuery

public void testSqlQuery()
See Also:
Database.sqlQuery(String)

testSqlQueryThrows

public void testSqlQueryThrows()
See Also:
Database.sqlQuery(String)

testHasCapability

public void testHasCapability()
See Also:
Database.hasCapability(User, Capability)

testAdministerCapability

public void testAdministerCapability()
See Also:
org.melati.poem.test.DatabaseTest#administerCapability(), Database.administerCapability()

testGetCanAdminister

public void testGetCanAdminister()
See Also:
Database.getCanAdminister()

testGuestUser

public final void testGuestUser()
See Also:
UserTable.guestUser()

testAdministratorUser

public final void testAdministratorUser()
See Also:
UserTable.administratorUser()

testReferencesToTable

public void testReferencesToTable()
See Also:
Database.referencesTo(Table)

testGetDbms

public void testGetDbms()
See Also:
Database.getDbms()

testToString

public void testToString()
See Also:
Database.toString()

testLogSQL

public void testLogSQL()
See Also:
Database.logSQL()

testSetLogSQL

public void testSetLogSQL()
See Also:
Database.setLogSQL(boolean)

testConnect

public void testConnect()
See Also:
DatabaseTest.testConnect(), Database#connect(String, String, String, String, int)

testDisconnect

public void testDisconnect()
See Also:
Database.disconnect()

testShutdown

public void testShutdown()
See Also:
org.melati.poem.Database#shutdown()

testTables

public void testTables()
Note this is here so that we have the expected number of tables.

See Also:
Database.tables()

testColumns

public void testColumns()
Note this is here so that we have the expected number of columns.

See Also:
Database.columns()

testAddConstraints

public void testAddConstraints()
See Also:
Database.addConstraints(), DatabaseTest.testAddConstraints()

testSetTransactionsMax

public void testSetTransactionsMax()
See Also:
Database.setTransactionsMax(int)

testGetTransactionsCount

public void testGetTransactionsCount()
See Also:
Database.getTransactionsCount()

testGetFreeTransactionsCount

public void testGetFreeTransactionsCount()
See Also:
Database.getFreeTransactionsCount()

testPoemTransaction

public void testPoemTransaction()
See Also:
Database.poemTransaction(int)

testTransaction

public void testTransaction()
See Also:
Database.transaction(int)

testIsFree

public void testIsFree()
See Also:
Database.isFree(PoemTransaction)

testBeginExclusiveLock

public void testBeginExclusiveLock()
See Also:
Database.beginExclusiveLock()

testEndExclusiveLock

public void testEndExclusiveLock()
See Also:
Database.endExclusiveLock()

testInSession

public void testInSession()
See Also:
Database.inSession(AccessToken, PoemTask)

testBeginSession

public void testBeginSession()
See Also:
Database.beginSession(AccessToken)

testEndSession

public void testEndSession()
See Also:
Database.endSession()

testGetTable

public void testGetTable()
See Also:
Database.getTable(String)

testGetTableInfoTable

public void testGetTableInfoTable()
See Also:
Database.getTableInfoTable()

testGetTableCategoryTable

public void testGetTableCategoryTable()
See Also:
Database.getTableCategoryTable()

testGetColumnInfoTable

public void testGetColumnInfoTable()
See Also:
Database.getColumnInfoTable()

testGetCapabilityTable

public void testGetCapabilityTable()
See Also:
Database.getCapabilityTable()

testGetGroupTable

public void testGetGroupTable()
See Also:
Database.getGroupTable()

testGetGroupMembershipTable

public void testGetGroupMembershipTable()
See Also:
Database.getGroupMembershipTable()

testGetGroupCapabilityTable

public void testGetGroupCapabilityTable()
See Also:
Database.getGroupCapabilityTable()

testGetSettingTable

public void testGetSettingTable()
See Also:
Database.getSettingTable()

testSqlUpdate

public void testSqlUpdate()
Need to be in separate transactions on postgresql.

See Also:
Database.sqlUpdate(String)

testSqlUpdate1

public void testSqlUpdate1()
Need to be in separate transactions on postgresql.

See Also:
Database.sqlUpdate(String)

testSqlUpdate2

public void testSqlUpdate2()
Need to be in separate transactions on postgresql.

See Also:
Database.sqlUpdate(String)

testGivesCapabilitySQL

public void testGivesCapabilitySQL()
See Also:
Database.givesCapabilitySQL(User, Capability)

testGuestAccessToken

public void testGuestAccessToken()
See Also:
Database.guestAccessToken()

testSetCanAdminister

public void testSetCanAdminister()
See Also:
Database.setCanAdminister(), Database.setCanAdminister(String)

testTrimCache

public void testTrimCache()
See Also:
Database.trimCache(int)

testUncacheContents

public void testUncacheContents()
See Also:
Database.uncache()

testReferencesToPersistent

public void testReferencesToPersistent()
See Also:
Database.referencesTo(Persistent)

testDumpCacheAnalysis

public void testDumpCacheAnalysis()
See Also:
Database.dumpCacheAnalysis()

testDump

public void testDump()
See Also:
Database.dump()

testQuotedName

public void testQuotedName()
See Also:
Database.quotedName(String)

testGetCommittedConnection

public void testGetCommittedConnection()
See Also:
Database.getCommittedConnection()

testLogCommits

public void testLogCommits()
See Also:
Database.logCommits()

testSetLogCommits

public void testSetLogCommits()
See Also:
Database.setLogCommits(boolean)


Copyright © 2000-2010 PanEris. All Rights Reserved.