|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.ojb.broker.PersistenceBrokerTest
Junit test driver for elematary PB tests.
Field Summary | |
(package private) PersistenceBroker |
broker
|
(package private) int |
testId
|
Constructor Summary | |
PersistenceBrokerTest(java.lang.String name)
BrokerTests constructor comment. |
Method Summary | |
protected Article |
createArticle(int id)
|
protected CdArticle |
createCdArticle(int id)
|
protected void |
deleteArticle(Article articleToDelete)
Insert the method's description here. |
protected void |
deleteArticle(int id)
Insert the method's description here. |
static void |
main(java.lang.String[] args)
|
protected Article |
readArticleByExample(int id)
Insert the method's description here. |
protected Article |
readArticleByIdentity(int id)
Insert the method's description here. |
void |
setUp()
|
protected void |
storeArticle(Article anArticle)
Insert the method's description here. |
void |
tearDown()
|
void |
testAutoIncrement()
Test the AutoIncrement facility |
void |
testChangeFieldsWhileStoringObject()
|
void |
testCountByReportQuery()
do a count by report query |
void |
testDelete()
test the the PB delete() method. |
void |
testDeleteByQuery()
test the the PB deleteByQuery() method. |
void |
testDoubleDelete()
|
void |
testDoubleStore()
|
void |
testDuplicateExtentQueries()
Test if only one query is executed for each extent. If the same query is run multiple times the result will contain duplicates |
void |
testEscaping()
Insert the method's description here. |
void |
testExtentAwareIteratorByQuery()
extent aware iterator |
void |
testExtentWithOneConcreteClassWithOjbConcreteClass()
performs a test of an extent with one concrete class that uses ojbConcreteClass identifier. |
void |
testGetByExampleAndGetByIdentity()
Insert the method's description here. |
void |
testGetCollectionByQuery()
Insert the method's description here. |
void |
testGetCollectionByQueryWithStartAndEnd()
|
void |
testGetDescriptor()
performs a test to check if metadata can be read |
void |
testGetIteratorByQuery()
Insert the method's description here. |
void |
testGetIteratorBySQL()
Testing the getIteratorBySQL functionality |
void |
testGetMultipleIteratorsByQuery()
Insert the method's description here. |
void |
testGetObjectByQuery()
Insert the method's description here. |
void |
testGetPKEnumerationByConstraints()
Insert the method's description here. |
void |
testGetReportQueryIteratorBySQL()
Testing the getReportQueryIteratorBySQL functionality |
void |
testGuidFieldConversion()
tests the FieldConversion facility |
void |
testInsert()
Insert the method's description here. |
void |
testIteratorSize()
Size returned by Iterator must be same as size of Collection |
void |
testMappingToOneTable()
performs a test of the inheritance mapping to one table. |
void |
testMappingToOneTableWithAbstractBaseClass()
performs a test of the inheritance mapping to one table. |
void |
testNull_0_Complex_2()
Object with autoincrement 'true' and a NON primitive data type for the PK field. |
void |
testNull_0_Complex()
PK fields with primitive data types interpret '0' value as 'null' by default. |
void |
testPaging()
|
void |
testPagingEmptyIterator()
|
void |
testPagingEndIndexOutOfRange()
|
void |
testPagingIndicesOutOfRange()
|
void |
testPBF()
|
void |
testPBisClosed()
|
void |
testReadUncommitedDataWithinSamePB()
|
void |
testRowReader()
tests the RowReader mechanism |
void |
testSortedCollectionAttribute()
testing the sorted collections feature.) |
void |
testSorting()
Insert the method's description here. |
void |
testUpdate()
Insert the method's description here. |
void |
testUpdateReferencedProxy()
test if reference to Proxy is updated |
void |
testUpdateWithModification()
Insert the method's description here. |
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 |
PersistenceBroker broker
int testId
Constructor Detail |
public PersistenceBrokerTest(java.lang.String name)
name
- java.lang.StringMethod Detail |
public static void main(java.lang.String[] args)
public void setUp()
public void tearDown()
public void testReadUncommitedDataWithinSamePB() throws java.lang.Exception
java.lang.Exception
public void testNull_0_Complex() throws java.lang.Exception
java.lang.Exception
public void testNull_0_Complex_2() throws java.lang.Exception
java.lang.Exception
public void testPBF() throws java.lang.Exception
java.lang.Exception
protected Article createArticle(int id)
protected CdArticle createCdArticle(int id)
protected void deleteArticle(int id) throws PersistenceBrokerException
id
- int
PersistenceBrokerException
protected void deleteArticle(Article articleToDelete) throws PersistenceBrokerException
articleToDelete
- int
PersistenceBrokerException
protected Article readArticleByExample(int id) throws PersistenceBrokerException
id
- int
PersistenceBrokerException
protected Article readArticleByIdentity(int id) throws PersistenceBrokerException
id
- int
PersistenceBrokerException
protected void storeArticle(Article anArticle) throws PersistenceBrokerException
anArticle
- int
PersistenceBrokerException
public void testDelete() throws java.lang.Exception
java.lang.Exception
public void testPBisClosed()
public void testDeleteByQuery() throws java.lang.Exception
java.lang.Exception
public void testMappingToOneTableWithAbstractBaseClass()
public void testExtentWithOneConcreteClassWithOjbConcreteClass() throws java.lang.Exception
java.lang.Exception
public void testMappingToOneTable() throws java.lang.Exception
java.lang.Exception
public void testGetDescriptor() throws java.lang.Exception
java.lang.Exception
public void testGuidFieldConversion()
public void testRowReader()
public void testEscaping() throws java.lang.Exception
java.lang.Exception
public void testGetByExampleAndGetByIdentity() throws java.lang.Exception
java.lang.Exception
public void testGetCollectionByQuery() throws java.lang.Exception
java.lang.Exception
public void testGetCollectionByQueryWithStartAndEnd() throws java.lang.Exception
java.lang.Exception
public void testSorting() throws java.lang.Exception
java.lang.Exception
public void testSortedCollectionAttribute()
public void testAutoIncrement() throws java.lang.Exception
java.lang.Exception
public void testCountByReportQuery() throws java.lang.Exception
java.lang.Exception
public void testExtentAwareIteratorByQuery() throws java.lang.Exception
java.lang.Exception
public void testGetIteratorByQuery() throws java.lang.Exception
java.lang.Exception
public void testGetIteratorBySQL() throws java.lang.Exception
java.lang.Exception
public void testGetReportQueryIteratorBySQL()
public void testGetMultipleIteratorsByQuery() throws java.lang.Exception
java.lang.Exception
public void testGetObjectByQuery() throws java.lang.Exception
java.lang.Exception
public void testGetPKEnumerationByConstraints() throws java.lang.Exception
java.lang.Exception
public void testInsert() throws java.lang.Exception
java.lang.Exception
public void testUpdate() throws java.lang.Exception
java.lang.Exception
public void testUpdateWithModification() throws java.lang.Exception
java.lang.Exception
public void testUpdateReferencedProxy() throws java.lang.Exception
java.lang.Exception
public void testChangeFieldsWhileStoringObject()
public void testDoubleStore()
public void testDoubleDelete()
public void testDuplicateExtentQueries()
public void testIteratorSize()
public void testPaging()
public void testPagingIndicesOutOfRange()
public void testPagingEndIndexOutOfRange()
public void testPagingEmptyIterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |