test.ojb.broker
Class PersistenceBrokerTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--test.ojb.broker.PersistenceBrokerTest
All Implemented Interfaces:
junit.framework.Test

public class PersistenceBrokerTest
extends junit.framework.TestCase

Insert the type's description here. Creation date: (06.12.2000 21:47:56)


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)
          Insert the method's description here.
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)
          Insert the method's description here.
protected  Article readArticleByExample(int id)
          Insert the method's description here.
protected  Article readArticleByIdentity(int id)
          Insert the method's description here.
 void setUp()
          Insert the method's description here.
protected  void storeArticle(Article anArticle)
          Insert the method's description here.
 void tearDown()
          Insert the method's description here.
 void testAutoIncrement()
          Test the AutoIncrement facility
 void testDelete()
          Insert the method's description here.
 void testEscaping()
          Insert the method's description here.
 void testGetByExampleAndGetByIdentity()
          Insert the method's description here.
 void testGetCollectionByQuery()
          Insert the method's description here.
 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 testInsert()
          Insert the method's description here.
 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 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 testUpdateWithModification()
          Insert the method's description here.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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

broker

PersistenceBroker broker

testId

int testId
Constructor Detail

PersistenceBrokerTest

public PersistenceBrokerTest(java.lang.String name)
BrokerTests constructor comment.

Parameters:
name - java.lang.String
Method Detail

createArticle

protected Article createArticle(int id)
Insert the method's description here. Creation date: (06.12.2000 22:15:33)

Parameters:
id - int

deleteArticle

protected void deleteArticle(int id)
                      throws PersistenceBrokerException
Insert the method's description here. Creation date: (06.12.2000 22:15:33)

Parameters:
id - int
PersistenceBrokerException

deleteArticle

protected void deleteArticle(Article articleToDelete)
                      throws PersistenceBrokerException
Insert the method's description here. Creation date: (06.12.2000 22:15:33)

Parameters:
articleToDelete - int
PersistenceBrokerException

main

public static void main(java.lang.String[] args)
Insert the method's description here. Creation date: (23.12.2000 18:30:38)

Parameters:
args - java.lang.String[]

readArticleByExample

protected Article readArticleByExample(int id)
                                throws PersistenceBrokerException
Insert the method's description here. Creation date: (06.12.2000 22:15:33)

Parameters:
id - int
PersistenceBrokerException

readArticleByIdentity

protected Article readArticleByIdentity(int id)
                                 throws PersistenceBrokerException
Insert the method's description here. Creation date: (06.12.2000 22:15:33)

Parameters:
id - int
PersistenceBrokerException

setUp

public void setUp()
Insert the method's description here. Creation date: (06.12.2000 21:58:53)

Overrides:
setUp in class junit.framework.TestCase

storeArticle

protected void storeArticle(Article anArticle)
                     throws PersistenceBrokerException
Insert the method's description here. Creation date: (06.12.2000 22:15:33)

Parameters:
anArticle - int
PersistenceBrokerException

tearDown

public void tearDown()
Insert the method's description here. Creation date: (06.12.2000 21:59:14)

Overrides:
tearDown in class junit.framework.TestCase

testDelete

public void testDelete()
Insert the method's description here. Creation date: (06.12.2000 21:51:22)


testMappingToOneTableWithAbstractBaseclass

public void testMappingToOneTableWithAbstractBaseclass()
performs a test of the inheritance mapping to one table.


testMappingToOneTable

public void testMappingToOneTable()
performs a test of the inheritance mapping to one table.


testGetDescriptor

public void testGetDescriptor()
performs a test to check if metadata can be read


testRowReader

public void testRowReader()
tests the RowReader mechanism


testEscaping

public void testEscaping()
Insert the method's description here. Creation date: (06.12.2000 21:51:22)


testGetByExampleAndGetByIdentity

public void testGetByExampleAndGetByIdentity()
Insert the method's description here. Creation date: (06.12.2000 21:51:22)


testGetCollectionByQuery

public void testGetCollectionByQuery()
Insert the method's description here. Creation date: (06.12.2000 21:51:22)


testSorting

public void testSorting()
Insert the method's description here. Creation date: (06.12.2000 21:51:22)


testSortedCollectionAttribute

public void testSortedCollectionAttribute()
testing the sorted collections feature.)


testAutoIncrement

public void testAutoIncrement()
Test the AutoIncrement facility


testGetIteratorByQuery

public void testGetIteratorByQuery()
Insert the method's description here. Creation date: (06.12.2000 21:51:22)


testGetIteratorBySQL

public void testGetIteratorBySQL()
Testing the getIteratorBySQL functionality


testGetReportQueryIteratorBySQL

public void testGetReportQueryIteratorBySQL()
Testing the getReportQueryIteratorBySQL functionality


testGetMultipleIteratorsByQuery

public void testGetMultipleIteratorsByQuery()
Insert the method's description here. Creation date: (06.12.2000 21:51:22)


testGetObjectByQuery

public void testGetObjectByQuery()
Insert the method's description here. Creation date: (06.12.2000 21:51:22)


testGetPKEnumerationByConstraints

public void testGetPKEnumerationByConstraints()
Insert the method's description here. Creation date: (06.12.2000 21:51:22)


testInsert

public void testInsert()
Insert the method's description here. Creation date: (06.12.2000 21:51:22)


testUpdate

public void testUpdate()
Insert the method's description here. Creation date: (06.12.2000 21:51:22)


testUpdateWithModification

public void testUpdateWithModification()
Insert the method's description here. Creation date: (06.12.2000 21:51:22)



Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04