org.apache.ojb.broker.sqlcount
Class CollectionCountTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.ojb.broker.sqlcount.AbstractCountTest
              extended byorg.apache.ojb.broker.sqlcount.CollectionCountTest
All Implemented Interfaces:
junit.framework.Test

public class CollectionCountTest
extends AbstractCountTest

Version:
$Id: CollectionCountTest.java,v 1.9 2004/01/07 19:08:50 thma Exp $
Author:
Oliver Matz

Field Summary
protected  PersistenceBroker myPB
           
 
Fields inherited from class org.apache.ojb.broker.sqlcount.AbstractCountTest
logger
 
Constructor Summary
CollectionCountTest()
           
 
Method Summary
protected  void setUp()
          sets the spy.properties file name.
protected  void tearDown()
           
 void testAllProductGroups()
          retrieve all product groups.
 void testNonPrefetched()
           
 void testPersonEmptyProjectsInsert()
           
 void testPersonSingleProjectInsert()
          insert a person with a project collection with one fresh element.
 void testPrefetched()
           
 void testProductGroup5()
          retrieve Product group number 5 and its 12 articles
 
Methods inherited from class org.apache.ojb.broker.sqlcount.AbstractCountTest
assertStmtCount, assertStmtCount, checkP6spyEnabled, logStmtCount, resetStmtCount
 
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

myPB

protected PersistenceBroker myPB
Constructor Detail

CollectionCountTest

public CollectionCountTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: AbstractCountTest
sets the spy.properties file name.

Overrides:
setUp in class AbstractCountTest
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testAllProductGroups

public void testAllProductGroups()
retrieve all product groups.


testProductGroup5

public void testProductGroup5()
retrieve Product group number 5 and its 12 articles


testPersonEmptyProjectsInsert

public void testPersonEmptyProjectsInsert()

testPersonSingleProjectInsert

public void testPersonSingleProjectInsert()
insert a person with a project collection with one fresh element. note: the first Person and Project require extra lookups in the table OJB_HL_SEQ.


testPrefetched

public void testPrefetched()

testNonPrefetched

public void testNonPrefetched()


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14