org.apache.ojb.broker.sqlcount
Class EmptyCacheCountTest

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

public class EmptyCacheCountTest
extends AbstractCountTest

Version:
$Id: EmptyCacheCountTest.java,v 1.2 2003/11/10 12:57:21 oliverm Exp $
Author:
Oliver Matz

Field Summary
protected  PersistenceBroker myPB
           
 
Fields inherited from class org.apache.ojb.broker.sqlcount.AbstractCountTest
logger
 
Constructor Summary
EmptyCacheCountTest()
           
 
Method Summary
protected  void setUp()
          switch cache to ObjectCacheEmptyImpl.
protected  void tearDown()
          undo Cache change.
 void testAccessArticleTwice()
          retrieve one CdArticle twice.
 
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

EmptyCacheCountTest

public EmptyCacheCountTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
switch cache to ObjectCacheEmptyImpl.

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

tearDown

protected void tearDown()
                 throws java.lang.Exception
undo Cache change.

Throws:
java.lang.Exception

testAccessArticleTwice

public void testAccessArticleTwice()
retrieve one CdArticle twice.



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