org.melati.poem.test
Class PersistentTest

Package class diagram package PersistentTest
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.EverythingTestCase
                  extended by org.melati.poem.test.PersistentTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ProtectedPersistentTest

public class PersistentTest
extends EverythingTestCase

Since:
27/11/2006
Author:
timp

Field Summary
 
Fields inherited from class org.melati.poem.test.EverythingTestCase
databaseName
 
Fields inherited from class org.melati.poem.test.PoemTestCase
maxTrans, result
 
Constructor Summary
PersistentTest(String name)
          Constructor for PersistentTest.
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAssertCanCreate()
           
 void testAssertCanCreateAccessToken()
           
 void testAssertCanDelete()
           
 void testAssertCanDeleteAccessToken()
           
 void testAssertCanWrite()
           
 void testAssertCanWriteAccessToken()
           
 void testDelete_unsafe()
           
 void testDelete()
           
 void testDeleteAndCommit()
           
 void testDeleteAndCommitMap()
           
 void testDeleteMap()
           
 void testDisplayString()
           
 void testDisplayStringPoemLocale()
           
 void testDisplayStringPoemLocaleInt()
           
 void testDump()
           
 void testDumpPrintStream()
           
 void testDuplicated()
           
 void testDuplicatedFloating()
           
 void testEqualsNull()
          Test that two uninitialised Persistents are equal.
 void testEqualsObject()
           
 void testExistenceLock()
           
 void testFieldsOfColumns()
           
 void testGetCooked()
           
 void testGetCookedString()
           
 void testGetDatabase()
           
 void testGetDetailDisplayFields()
           
 void testGetField()
           
 void testGetFields()
           
 void testGetPrimaryDisplayField()
           
 void testGetRaw()
           
 void testGetRawString()
           
 void testGetRecordDisplayFields()
           
 void testGetSearchCriterionFields()
           
 void testGetSummaryDisplayFields()
           
 void testGetTable()
           
 void testGetTroid()
           
 void testHashCode()
           
 void testInvalidate()
           
 void testMakePersistent()
           
 void testPersistent()
           
 void testPersistentStringString()
           
 void testPersistentTableInteger()
           
 void testPostEdit()
           
 void testPostInsert()
           
 void testPostModify()
           
 void testPostWrite()
           
 void testPreEdit()
           
 void testSetCooked()
           
 void testSetRaw()
           
 void testSetRawString()
           
 void testSetStatusExistent()
           
 void testSetStatusNonexistent()
           
 void testSetTable()
           
 void testStatusExistent()
           
 void testStatusNonexistent()
           
 void testToString()
           
 void testToStringNull()
          Test the representation of an uninitialised Persistent.
 void testTroid()
           
 
Methods inherited from class org.melati.poem.test.EverythingTestCase
databaseUnchanged, getDatabaseName, getDb
 
Methods inherited from class org.melati.poem.test.PoemTestCase
assertEquals, assertEquals, assertEquals, checkColumns, checkDbUnchanged, checkTables, checkTablesAndColumns, dropTable, dumpTable, getDatabase, 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, run
 

Constructor Detail

PersistentTest

public PersistentTest(String name)
Constructor for PersistentTest.

Parameters:
name -
Method Detail

setUp

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

tearDown

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

testInvalidate

public void testInvalidate()
See Also:
JdbcPersistent.invalidate()

testPersistent

public void testPersistent()
See Also:
org.melati.poem.Persistent#Persistent()

testPersistentStringString

public void testPersistentStringString()
See Also:
org.melati.poem.Persistent#Persistent(String, String)

testPersistentTableInteger

public void testPersistentTableInteger()
See Also:
org.melati.poem.Persistent#Persistent(Table, Integer)

testSetStatusNonexistent

public void testSetStatusNonexistent()
See Also:
org.melati.poem.Persistent#setStatusNonexistent()

testSetStatusExistent

public void testSetStatusExistent()
See Also:
org.melati.poem.Persistent#setStatusExistent()

testStatusNonexistent

public void testStatusNonexistent()
See Also:
Persistent.statusNonexistent()

testStatusExistent

public void testStatusExistent()
See Also:
Persistent.statusExistent()

testMakePersistent

public void testMakePersistent()
See Also:
Persistent.makePersistent()

testGetTable

public void testGetTable()
See Also:
Persistent.getTable()

testSetTable

public void testSetTable()
See Also:
org.melati.poem.Persistent#setTable(Table, Integer)

testGetDatabase

public void testGetDatabase()
See Also:
Persistent.getDatabase()

testTroid

public void testTroid()
See Also:
Persistable.troid()

testGetTroid

public void testGetTroid()
See Also:
Persistable.getTroid()

testExistenceLock

public void testExistenceLock()
See Also:
Persistent.existenceLock()

testAssertCanWriteAccessToken

public void testAssertCanWriteAccessToken()
See Also:
Persistent.assertCanWrite(AccessToken)

testAssertCanWrite

public void testAssertCanWrite()
See Also:
Persistent.assertCanWrite()

testAssertCanDeleteAccessToken

public void testAssertCanDeleteAccessToken()
See Also:
Persistent.assertCanDelete(AccessToken)

testAssertCanDelete

public void testAssertCanDelete()
See Also:
Persistent.assertCanDelete()

testAssertCanCreateAccessToken

public void testAssertCanCreateAccessToken()
See Also:
Persistent.assertCanCreate(AccessToken)

testAssertCanCreate

public void testAssertCanCreate()
See Also:
Persistent.assertCanCreate()

testGetRaw

public void testGetRaw()
See Also:
Persistent.getRaw(String)

testGetRawString

public void testGetRawString()
See Also:
Persistent.getRawString(String)

testSetRaw

public void testSetRaw()
See Also:
Persistent.setRaw(String, Object)

testSetRawString

public void testSetRawString()
See Also:
Persistent.setRawString(String, String)

testGetCooked

public void testGetCooked()
See Also:
Persistent.getCooked(String)

testGetCookedString

public void testGetCookedString()
See Also:
Persistent.getCookedString(String, PoemLocale, int)

testSetCooked

public void testSetCooked()
See Also:
Persistent.setCooked(String, Object)

testGetField

public void testGetField()
See Also:
Persistent.getField(String)

testFieldsOfColumns

public void testFieldsOfColumns()
See Also:
Persistent.fieldsOfColumns(Enumeration)

testGetFields

public void testGetFields()
See Also:
Persistent.getFields()

testGetRecordDisplayFields

public void testGetRecordDisplayFields()
See Also:
Persistent.getRecordDisplayFields()

testGetDetailDisplayFields

public void testGetDetailDisplayFields()
See Also:
Persistent.getDetailDisplayFields()

testGetSummaryDisplayFields

public void testGetSummaryDisplayFields()
See Also:
Persistent.getSummaryDisplayFields()

testGetSearchCriterionFields

public void testGetSearchCriterionFields()
See Also:
Persistent.getSearchCriterionFields()

testGetPrimaryDisplayField

public void testGetPrimaryDisplayField()
See Also:
ProtectedPersistentTest.testGetPrimaryDisplayField(), Persistent.getPrimaryDisplayField()

testDeleteMap

public void testDeleteMap()
See Also:
Persistent.delete(Map)

testDelete

public void testDelete()
See Also:
Persistent.delete()

testDelete_unsafe

public void testDelete_unsafe()
See Also:
Persistent.delete_unsafe()

testDeleteAndCommit

public void testDeleteAndCommit()
See Also:
Persistent.deleteAndCommit()

testDeleteAndCommitMap

public void testDeleteAndCommitMap()
See Also:
Persistent.deleteAndCommit(Map)

testDuplicated

public void testDuplicated()
See Also:
Persistent.duplicated()

testDuplicatedFloating

public void testDuplicatedFloating()
See Also:
Persistent.duplicatedFloating()

testToString

public void testToString()
See Also:
org.melati.poem.Persistent#toString()

testDisplayStringPoemLocaleInt

public void testDisplayStringPoemLocaleInt()
See Also:
Persistent.displayString(PoemLocale, int)

testDisplayStringPoemLocale

public void testDisplayStringPoemLocale()
See Also:
Persistent.displayString(PoemLocale)

testDisplayString

public void testDisplayString()
See Also:
Persistent.displayString()

testHashCode

public void testHashCode()
See Also:
org.melati.poem.Persistent#hashCode()

testEqualsObject

public void testEqualsObject()
See Also:
org.melati.poem.Persistent#equals(Object)

testDump

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

testDumpPrintStream

public void testDumpPrintStream()
See Also:
Persistent.dump(PrintStream)

testPostWrite

public void testPostWrite()
See Also:
Persistent.postWrite()

testPostInsert

public void testPostInsert()
See Also:
Persistent.postInsert()

testPostModify

public void testPostModify()
See Also:
Persistent.postModify()

testPreEdit

public void testPreEdit()
See Also:
Persistent.preEdit()

testPostEdit

public void testPostEdit()
See Also:
Persistent.postEdit(boolean)

testToStringNull

public void testToStringNull()
Test the representation of an uninitialised Persistent.


testEqualsNull

public void testEqualsNull()
Test that two uninitialised Persistents are equal.



Copyright © 2000-2010 PanEris. All Rights Reserved.