org.apache.ojb.broker.sqlcount
Class SimpleCountTest

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

public class SimpleCountTest
extends AbstractCountTest

Version:
$Id: SimpleCountTest.java,v 1.2 2003/10/27 15:49:15 oliverm Exp $
Author:
Oliver Matz

Field Summary
protected  PersistenceBroker myPB
           
 
Fields inherited from class org.apache.ojb.broker.sqlcount.AbstractCountTest
logger
 
Constructor Summary
SimpleCountTest()
           
 
Method Summary
protected  void setUp()
          sets the spy.properties file name.
 void testRetrieveEmptyProjects()
           
 void testRetrievePerson()
          very simple test: retrieve a person from the database
 void testRetrievePersonTwice()
           
 
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, tearDown, 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

SimpleCountTest

public SimpleCountTest()
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

testRetrievePerson

public void testRetrievePerson()
very simple test: retrieve a person from the database


testRetrievePersonTwice

public void testRetrievePersonTwice()

testRetrieveEmptyProjects

public void testRetrieveEmptyProjects()


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