org.melati.poem.test
Class PersistentFactoryTest

Package class diagram package PersistentFactoryTest
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.PersistentFactoryTest
All Implemented Interfaces:
junit.framework.Test

public class PersistentFactoryTest
extends PoemTestCase

Since:
14 June 2007
Author:
timp

Field Summary
 
Fields inherited from class org.melati.poem.test.PoemTestCase
maxTrans, result
 
Constructor Summary
PersistentFactoryTest(String name)
           
 
Method Summary
protected  void databaseUnchanged()
           
protected  void setUp()
          
protected  void tearDown()
          
 void testFrom()
           
 void testFromBadInput()
          Test Exception throwing.
 void testFromFloatingPersistent()
          Test method for org.melati.poem.PersistentFactory#fromInstance(java.lang.Object).
 void testFromKnownInstance()
          Test method for org.melati.poem.PersistentFactory#fromInstance(java.lang.Object).
 void testFromUnknownInstance()
          Not idempotent.
 void testPersistentFromPojoWithBinaryField()
          Test persisting an oject with a byte array member.
 void testPersistentFromPojoWithIdSet()
           
 void testPojoFromWrongPersistent()
          Try to resurrect to wrong class.
 
Methods inherited from class org.melati.poem.test.PoemTestCase
assertEquals, assertEquals, assertEquals, checkColumns, checkDbUnchanged, checkTables, checkTablesAndColumns, 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

PersistentFactoryTest

public PersistentFactoryTest(String name)
Parameters:
name -
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()

databaseUnchanged

protected void databaseUnchanged()
Overrides:
databaseUnchanged in class PoemTestCase

testFromKnownInstance

public void testFromKnownInstance()
Test method for org.melati.poem.PersistentFactory#fromInstance(java.lang.Object).


testFromFloatingPersistent

public void testFromFloatingPersistent()
Test method for org.melati.poem.PersistentFactory#fromInstance(java.lang.Object).


testFromUnknownInstance

public void testFromUnknownInstance()
Not idempotent.


testFrom

public void testFrom()
              throws Exception
Throws:
Exception

testFromBadInput

public void testFromBadInput()
                      throws Exception
Test Exception throwing.

Throws:
Exception

testPersistentFromPojoWithIdSet

public void testPersistentFromPojoWithIdSet()
                                     throws Exception
Throws:
Exception

testPersistentFromPojoWithBinaryField

public void testPersistentFromPojoWithBinaryField()
Test persisting an oject with a byte array member.


testPojoFromWrongPersistent

public void testPojoFromWrongPersistent()
                                 throws Exception
Try to resurrect to wrong class.

Throws:
Exception


Copyright © 2000-2010 PanEris. All Rights Reserved.