Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 81444 invoked from network); 17 Sep 2003 22:31:56 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Sep 2003 22:31:56 -0000 Received: (qmail 28424 invoked by uid 500); 17 Sep 2003 22:31:39 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 28399 invoked by uid 500); 17 Sep 2003 22:31:39 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 28386 invoked by uid 500); 17 Sep 2003 22:31:38 -0000 Received: (qmail 28383 invoked from network); 17 Sep 2003 22:31:38 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 17 Sep 2003 22:31:38 -0000 Received: (qmail 81430 invoked by uid 1510); 17 Sep 2003 22:31:51 -0000 Date: 17 Sep 2003 22:31:51 -0000 Message-ID: <20030917223151.81429.qmail@minotaur.apache.org> From: arminw@apache.org To: db-ojb-cvs@apache.org Subject: cvs commit: db-ojb/src/test/org/apache/ojb/broker/metadata MetadataTest.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N arminw 2003/09/17 15:31:51 Modified: src/test/org/apache/ojb Test_Repository.xml repository_junit.xml repository_database.xml repository.dtd OJB.properties src/test/org/apache/ojb/broker TreeTest.java ObjectCacheTest.java src/test/org/apache/ojb/broker/metadata MetadataTest.java Removed: src/test/org/apache/ojb/broker TreeGroup.java Tree.java Log: - add new cache tests - update test cases - add new property in OJB.properties file - add new element 'object-cache' in repository.dtd Revision Changes Path 1.2 +32 -1 db-ojb/src/test/org/apache/ojb/Test_Repository.xml Index: Test_Repository.xml =================================================================== RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/Test_Repository.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Test_Repository.xml 26 Feb 2003 00:00:15 -0000 1.1 +++ Test_Repository.xml 17 Sep 2003 22:31:51 -0000 1.2 @@ -26,7 +26,7 @@ + + + + + + + + + + + + + + + + + 1.93 +15 -14 db-ojb/src/test/org/apache/ojb/repository_junit.xml Index: repository_junit.xml =================================================================== RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository_junit.xml,v retrieving revision 1.92 retrieving revision 1.93 diff -u -r1.92 -r1.93 --- repository_junit.xml 17 Sep 2003 19:02:08 -0000 1.92 +++ repository_junit.xml 17 Sep 2003 22:31:51 -0000 1.93 @@ -1,4 +1,5 @@ + - - + + + - 1.15 +8 -2 db-ojb/src/test/org/apache/ojb/repository_database.xml Index: repository_database.xml =================================================================== RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository_database.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- repository_database.xml 13 Sep 2003 14:52:28 -0000 1.14 +++ repository_database.xml 17 Sep 2003 22:31:51 -0000 1.15 @@ -13,7 +13,6 @@ using the MetadataManager. --> - + + + + + + + - - - - + + + + + + + + @@ -277,7 +305,7 @@ naming the derived classes. A class-descriptor may contain user defined custom attribute elements. - + The insert-procedure, update-procedure and delete-procedure elements identify the procedure/function that is defined in the database which will handle the insertion, update or deletion of an instance of this @@ -288,7 +316,7 @@ --> @@ -330,7 +358,7 @@ also must be defined. factory-method refers to a static no-argument method of the factory-class class. - + The refresh attribute can be set to true to force OJB to refresh instances when loaded from cache. It's set to false by default. @@ -397,7 +425,7 @@ The optional jdbc-type attribute specifies the JDBC type of the column. If not specified OJB tries to identify the JDBC type by inspecting the - Java attribute by reflection. + Java attribute by reflection. The primarykey specifies if the column is a primary key column. @@ -459,7 +487,7 @@ jdbc-type (BIT | TINYINT | SMALLINT | INTEGER | BIGINT | DOUBLE | FLOAT | REAL | NUMERIC | DECIMAL | CHAR | VARCHAR | LONGVARCHAR | DATE | TIME | TIMESTAMP | BINARY | - VARBINARY | LONGVARBINARY | CLOB | BLOB) #IMPLIED + VARBINARY | LONGVARBINARY | CLOB | BLOB | BOOLEAN) #IMPLIED primarykey (true | false) "false" nullable (true | false) "true" indexed (true | false) "false" @@ -645,7 +673,7 @@ were set to true, but the auto-update and auto-delete attributes themself must be always set to false for use with OTM layer. - + --> 1.58 +25 -11 db-ojb/src/test/org/apache/ojb/OJB.properties Index: OJB.properties =================================================================== RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/OJB.properties,v retrieving revision 1.57 retrieving revision 1.58 diff -u -r1.57 -r1.58 --- OJB.properties 13 Sep 2003 21:28:15 -0000 1.57 +++ OJB.properties 17 Sep 2003 22:31:51 -0000 1.58 @@ -164,13 +164,27 @@ #---------------------------------------------------------------------------------------- # Object cache #---------------------------------------------------------------------------------------- -# The ObjectCacheClass entry tells OJB which concrete instance Cache -# implementation is to be used. +# The ObjectCacheClass entry tells OJB which concrete ObjectCache +# implementation is to be used as standard cache. +# Its also possible to override this entry adding object-cache elements +# on jdbc-connection-descriptor level and +# per class-descriptor in repository file. More info see documentation. +# ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCacheDefaultImpl #ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCacheEmptyImpl #ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCachePerBrokerImpl -#ObjectCacheClass=org.apache.ojb.broker.cache.MetaObjectCacheJCSImpl -#ObjectCacheClass=org.apache.ojb.broker.cache.MetaObjectCachePerClassImpl +#ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCacheJCSPerClassImpl +#ObjectCacheClass=org.apache.ojb.broker.cache.ObjectCachePerClassImpl +# +# +# This property is only relevant if the per class-descriptor object-cache +# declaration was used in conjunction with metadata runtime changes. +# If set 'flase' the class name of the object is used +# to find a per class ObjectCache implementation. +# If set 'true' the ObjectCacheDescriptor instance is used as key to +# find a per class ObjectCache, this enables to use different ObjectCache +# instances for the same class. +descriptorBasedCaches=false # # # Use CacheFilters to do filter operations before caching methods were @@ -256,8 +270,8 @@ DEFAULT.LogLevel=WARN # Logger for PersistenceBrokerImpl class org.apache.ojb.broker.core.PersistenceBrokerImpl.LogLevel=WARN -# Logger for PersistenceBrokerFactory class -org.apache.ojb.broker.PersistenceBrokerFactory.LogLevel=WARN +# Logger for PersistenceBrokerFactory class PersistenceBrokerFactoryDefaultImpl +org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.LogLevel=WARN # Logger for RepositoryXmlHandler, useful for debugging parsing of repository.xml! org.apache.ojb.broker.metadata.RepositoryXmlHandler.LogLevel=WARN # Logger for JdbcAccess, useful for debugging JDBC related problems @@ -270,10 +284,10 @@ org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.LogLevel=WARN # Logger for RepositoryPersistor org.apache.ojb.broker.metadata.RepositoryPersistor.LogLevel=WARN -# Logger for PersistenceBrokerFactoryDefaultImpl -org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.LogLevel=WARN -# Logger for ConnectionFactory -org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.LogLevel=ERROR +# Logger for ConnectionFactory base class +org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.LogLevel=WARN +# Logger for ConnectionManager +org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.LogLevel=WARN # # Special Logger categories used in test suite and tutorials # 1.8 +514 -71 db-ojb/src/test/org/apache/ojb/broker/TreeTest.java Index: TreeTest.java =================================================================== RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/TreeTest.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- TreeTest.java 8 Mar 2003 19:22:56 -0000 1.7 +++ TreeTest.java 17 Sep 2003 22:31:51 -0000 1.8 @@ -34,12 +34,11 @@ * Insert the method's description here. * Creation date: (13.02.2001 18:50:29) * @return TestThreadsNLocks.org.apache.ojb.broker.Tree - * @param parent TestThreadsNLocks.org.apache.ojb.broker.Tree */ public TreeGroup createTreeGroup() throws Exception { TreeGroup result = new TreeGroup(); - + FieldDescriptor idFld = broker.getClassDescriptor(Tree.class).getFieldDescriptorByName("id"); Integer idVal = (Integer) broker.serviceSequenceManager().getUniqueValue(idFld); @@ -64,7 +63,7 @@ { FieldDescriptor idFld = broker.getClassDescriptor(Tree.class).getFieldDescriptorByName("id"); Integer idVal = (Integer) broker.serviceSequenceManager().getUniqueValue(idFld); - + result.setId(idVal.intValue()); } catch (PersistenceBrokerException e) @@ -119,7 +118,7 @@ { FieldDescriptor idFld = broker.getClassDescriptor(Tree.class).getFieldDescriptorByName("id"); Integer idVal = (Integer) broker.serviceSequenceManager().getUniqueValue(idFld); - + root.setId(idVal.intValue()); } catch (PersistenceBrokerException e) @@ -170,81 +169,525 @@ } /** + * */ public void testTreeGroup() throws Exception { - try - { - TreeGroup root = createTreeGroup(); - root.setData("The Tree Group root: " + root.getId()); - TreeGroup green = createTreeGroup(); - green.setData("the GREEN group" + green.getId()); - TreeGroup red = createTreeGroup(); - red.setData("the RED group" + red.getId()); - - TreeGroup child; - for (int i = 0; i < 3; i++) - { - child = createTreeGroup(); - root.addChild(child); - green.addMember(child); - child = createTreeGroup(); - root.addChild(child); - red.addMember(child); - } + TreeGroup root = createTreeGroup(); + root.setData("The Tree Group root: " + root.getId()); + TreeGroup green = createTreeGroup(); + green.setData("the GREEN group " + green.getId()); + TreeGroup red = createTreeGroup(); + red.setData("the RED group " + red.getId()); + + TreeGroup child; + for (int i = 0; i < 3; i++) + { + child = createTreeGroup(); + root.addChild(child); + green.addMember(child); + child = createTreeGroup(); + root.addChild(child); + red.addMember(child); + } + + for (int i = 0; i < 6; i++) + { + child = root.getChild(i); + child.addChild(createTreeGroup()); + } + + //System.out.println("original TreeGroup:"); + //System.out.println(root); + //System.out.println("GREEN TreeGroup:"); + //System.out.println(green); + //System.out.println("RED TreeGroup:"); + //System.out.println(red); + broker.beginTransaction(); + broker.store(root); + broker.store(green); + broker.store(red); + broker.commitTransaction(); + + Identity oid = new Identity(root, broker); + + broker.clearCache(); + + TreeGroup root_r = (TreeGroup) broker.getObjectByIdentity(oid); + //System.out.println("tree after reading from db:"); + //System.out.println(root_r); + assertNotNull(root_r); + assertEquals( + "tree should have same size after retrival", + root.size(), + root_r.size()); + + oid = new Identity(green, broker); + TreeGroup green_r = (TreeGroup) broker.getObjectByIdentity(oid); + //System.out.println("tree after reading from db:"); + //System.out.println(green_r); + assertEquals( + "tree should have same size after retrival", + green.size(), + green_r.size()); + + oid = new Identity(red, broker); + TreeGroup red_r = (TreeGroup) broker.getObjectByIdentity(oid); + //System.out.println("tree after reading from db:"); + //System.out.println(red_r); + assertEquals( + "tree should have same size after retrival", + red.size(), + red_r.size()); - for (int i = 0; i < 6; i++) - { - child = root.getChild(i); - child.addChild(createTreeGroup()); - } - - //System.out.println("original TreeGroup:"); - //System.out.println(root); - //System.out.println("GREEN TreeGroup:"); - //System.out.println(green); - //System.out.println("RED TreeGroup:"); - //System.out.println(red); - - broker.store(root); - broker.store(green); - broker.store(red); + } - Identity oid = new Identity(root, broker); - broker.clearCache(); - TreeGroup root_r = (TreeGroup) broker.getObjectByIdentity(oid); - //System.out.println("tree after reading from db:"); - //System.out.println(root_r); - assertEquals( - "tree should have same size after retrival", - root.size(), - root_r.size()); + + //***************************************************************** + // inner classes - test objects + //***************************************************************** + + /** + * Tree is recursive type: a Tree element contains some data + * and a Vector of child Tree elements. + * This sample demonstrates what is needed to map such a data + * structure on a DB table + * @author Thomas Mahler + */ + public static class Tree implements java.io.Serializable + { + private int id; + private String data; + private int parentId; + private Vector childs; + + /** + * Tree constructor comment. + */ + public Tree() + { + super(); + } + + /** + * Tree constructor comment. + */ + public Tree(int id, String data, int parentid) + { + this.id = id; + this.data = data; + this.parentId = parentid; + } + + public void addChild(Tree newChild) + { + if (childs == null) childs = new Vector(); + + childs.add(newChild); + + } + + public Tree getChild(int index) + { + return (Tree) childs.get(index); + + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @return java.util.Vector + */ + public java.util.Vector getChilds() + { + return childs; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @return java.lang.String + */ + public java.lang.String getData() + { + return data; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @return int + */ + public int getId() + { + return id; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @return int + */ + public int getParentId() + { + return parentId; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @param newChilds java.util.Vector + */ + public void setChilds(java.util.Vector newChilds) + { + childs = newChilds; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @param newData java.lang.String + */ + public void setData(java.lang.String newData) + { + data = newData; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @param newId int + */ + public void setId(int newId) + { + id = newId; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @param newParentId int + */ + public void setParentId(int newParentId) + { + parentId = newParentId; + } + + /** + * Insert the method's description here. + * Creation date: (14.02.2001 19:51:23) + * @return int + */ + public int size() + { + int result = 1; + for (int i = 0; i < childs.size(); i++) + { + result += ((Tree) childs.get(i)).size(); + } + return result; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:41) + * @return java.lang.String + */ + public String toString() + { + + return data + ((childs == null) ? "" : childs.toString()); + } + } + + /** + * Tree is recursive type: a Tree element contains some data + * and a Vector of child Tree elements. + * This sample demonstrates what is needed to map such a data + * structure on a DB table + * @author Thomas Mahler + */ + public static class TreeGroup implements java.io.Serializable + { + private int id; + private String data; + + private int parentId; + private Vector children; + private TreeGroup myParent; + + private int groupId; + private Vector groupMembers; + private TreeGroup myGroup; + + + /** + * Tree constructor comment. + */ + public TreeGroup() + { + super(); + } + + /** + * Tree constructor comment. + */ + public TreeGroup(int id, String data, int parentid, int groupid) + { + this.id = id; + this.data = data; + this.parentId = parentid; + this.groupId = groupid; + } + + public void addChild(TreeGroup newChild) + { + if (children == null) children = new Vector(); + + children.add(newChild); + newChild.setParentId(this.getId()); + + } + + public void addMember(TreeGroup newMember) + { + if (groupMembers == null) groupMembers = new Vector(); + + groupMembers.add(newMember); + newMember.setGroupId(this.getId()); + + } + + public TreeGroup getChild(int index) + { + return (TreeGroup) children.get(index); + + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @return java.util.Vector + */ + public Vector getChilds() + { + return children; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @return java.lang.String + */ + public String getData() + { + return data; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @return int + */ + public int getGroupId() + { + return groupId; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @return int + */ + public int getId() + { + return id; + } + + public TreeGroup getMember(int index) + { + return (TreeGroup) groupMembers.get(index); + + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @return java.util.Vector + */ + public Vector getMembers() + { + return groupMembers; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @return int + */ + public int getParentId() + { + return parentId; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @param newChilds java.util.Vector + */ + public void setChilds(java.util.Vector newChilds) + { + children = newChilds; + } + + /** + * Sets the data. + * @param data The data to set + */ + public void setData(String data) + { + this.data = data; + } + + /** + * Sets the groupId. + * @param groupId The groupId to set + */ + public void setGroupId(int groupId) + { + this.groupId = groupId; + } + + /** + * Sets the id. + * @param id The id to set + */ + public void setId(int id) + { + this.id = id; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:02) + * @param newMembers java.util.Vector + */ + public void setMembers(java.util.Vector newMembers) + { + groupMembers = newMembers; + } + + /** + * Sets the parentId. + * @param parentId The parentId to set + */ + public void setParentId(int parentId) + { + this.parentId = parentId; + } + + /** + * Insert the method's description here. + * Creation date: (14.02.2001 19:51:23) + * @return int + */ + public int size() + { + int result = 1; + if(children == null) return result; + for (int i = 0; i < children.size(); i++) + { + result += ((TreeGroup) children.get(i)).size(); + } + return result; + } + + /** + * Insert the method's description here. + * Creation date: (13.02.2001 18:33:41) + * @return java.lang.String + */ + public String toString() + { + return data + + ((children == null || (children.size() == 0)) ? "" : " children: " + children.toString()) + + ((groupMembers == null || (groupMembers.size() == 0)) ? "" : " members: " + groupMembers.toString()); + } + /** + * Gets the children. + * @return Returns a Vector + */ + public Vector getChildren() + { + return children; + } + + /** + * Sets the children. + * @param children The children to set + */ + public void setChildren(Vector children) + { + this.children = children; + } + + /** + * Gets the groupMembers. + * @return Returns a Vector + */ + public Vector getGroupMembers() + { + return groupMembers; + } + + /** + * Sets the groupMembers. + * @param groupMembers The groupMembers to set + */ + public void setGroupMembers(Vector groupMembers) + { + this.groupMembers = groupMembers; + } + + /** + * Gets the myGroup. + * @return Returns a TreeGroup + */ + public TreeGroup getMyGroup() + { + return myGroup; + } + + /** + * Sets the myGroup. + * @param myGroup The myGroup to set + */ + public void setMyGroup(TreeGroup myGroup) + { + this.myGroup = myGroup; + } + + /** + * Gets the myParent. + * @return Returns a TreeGroup + */ + public TreeGroup getMyParent() + { + return myParent; + } + + /** + * Sets the myParent. + * @param myParent The myParent to set + */ + public void setMyParent(TreeGroup myParent) + { + this.myParent = myParent; + } - oid = new Identity(green, broker); - TreeGroup green_r = (TreeGroup) broker.getObjectByIdentity(oid); - //System.out.println("tree after reading from db:"); - //System.out.println(green_r); - assertEquals( - "tree should have same size after retrival", - green.size(), - green_r.size()); + } - oid = new Identity(red, broker); - TreeGroup red_r = (TreeGroup) broker.getObjectByIdentity(oid); - //System.out.println("tree after reading from db:"); - //System.out.println(red_r); - assertEquals( - "tree should have same size after retrival", - red.size(), - red_r.size()); - } - catch (Throwable t) - { - System.out.println(t.getMessage()); - fail(t.getMessage()); - } - } } 1.8 +102 -50 db-ojb/src/test/org/apache/ojb/broker/ObjectCacheTest.java Index: ObjectCacheTest.java =================================================================== RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/ObjectCacheTest.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ObjectCacheTest.java 5 Sep 2003 15:01:47 -0000 1.7 +++ ObjectCacheTest.java 17 Sep 2003 22:31:51 -0000 1.8 @@ -1,25 +1,27 @@ package org.apache.ojb.broker; -import java.io.Serializable; - import junit.framework.TestCase; - import org.apache.ojb.broker.cache.CacheFilterClassImpl; import org.apache.ojb.broker.cache.CacheFilterPackageImpl; -import org.apache.ojb.broker.cache.MetaObjectCacheJCSImpl; -import org.apache.ojb.broker.cache.MetaObjectCachePerClassImpl; import org.apache.ojb.broker.cache.ObjectCache; import org.apache.ojb.broker.cache.ObjectCacheDefaultImpl; import org.apache.ojb.broker.cache.ObjectCacheFactory; import org.apache.ojb.broker.cache.ObjectCacheJCSImpl; +import org.apache.ojb.broker.cache.ObjectCacheJCSPerClassImpl; import org.apache.ojb.broker.cache.ObjectCachePerBrokerImpl; +import org.apache.ojb.broker.cache.ObjectCachePerClassImpl; +import org.apache.ojb.broker.cache.ObjectCacheLocalDefaultImpl; +import org.apache.ojb.broker.metadata.ConnectionRepository; import org.apache.ojb.broker.metadata.MetadataManager; +import org.apache.ojb.broker.metadata.MetadataTest; import org.apache.ojb.broker.query.QueryByIdentity; import org.apache.ojb.broker.sequence.Repository; import org.apache.ojb.broker.util.GUID; import org.apache.ojb.broker.util.configuration.impl.OjbConfiguration; import org.apache.ojb.broker.util.configuration.impl.OjbConfigurator; +import java.io.Serializable; + /** * Do some basic tests using ObjectCache implementations. * @@ -35,10 +37,11 @@ Class[] objectCacheImpls = new Class[]{ // ObjectCacheEmptyImpl.class, ObjectCacheDefaultImpl.class, + ObjectCacheLocalDefaultImpl.class, ObjectCachePerBrokerImpl.class, ObjectCacheJCSImpl.class, - MetaObjectCacheJCSImpl.class, - MetaObjectCachePerClassImpl.class + ObjectCacheJCSPerClassImpl.class, + ObjectCachePerClassImpl.class }; String[] cacheFilter = new String[]{ @@ -80,15 +83,25 @@ return (OjbConfiguration) OjbConfigurator.getInstance().getConfigurationFor(null); } + /** + * Check base caching functions of some cache implementations. + * + * @throws Exception + */ public void testSimpleObjectCacheFunctions() throws Exception { - for(int i=0;i + + + + + +