db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/odmg AllTests.java LockTestCommitedReads.java LockTestRepeatableReads.java LockTestSerializable.java LockTestUncommitedReads.java
Date Mon, 06 Dec 2004 11:17:58 GMT
arminw      2004/12/06 03:17:58

  Modified:    src/java/org/apache/ojb/broker/locking
                        AbstractLockStrategy.java
                        ReadCommittedStrategy.java
                        ReadUncommittedStrategy.java
                        RepeatableReadStrategy.java
                        SerializableStrategy.java
               src/test/org/apache/ojb/broker AllTests.java
               src/test/org/apache/ojb/odmg AllTests.java
  Added:       src/test/org/apache/ojb/broker/locking
                        LockTestCommitedReads.java
                        LockTestRepeatableReads.java
                        LockTestSerializable.java
                        LockTestUncommitedReads.java
  Removed:     src/test/org/apache/ojb/odmg LockTestCommitedReads.java
                        LockTestRepeatableReads.java
                        LockTestSerializable.java
                        LockTestUncommitedReads.java
  Log:
  move locking tests to broker package
  merge locking classes with 1.0.x branch
  
  Revision  Changes    Path
  1.5       +49 -0     db-ojb/src/java/org/apache/ojb/broker/locking/AbstractLockStrategy.java
  
  Index: AbstractLockStrategy.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/locking/AbstractLockStrategy.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AbstractLockStrategy.java	14 Nov 2004 09:36:44 -0000	1.4
  +++ AbstractLockStrategy.java	6 Dec 2004 11:17:56 -0000	1.5
  @@ -103,4 +103,53 @@
       {
           return lockMap.hasReadLock(key, resourceId);
       }
  +
  +    /**
  +     * Returns the lock strategy isolation level.
  +     *
  +     * @return
  +     */
  +    abstract int getIsolationLevel();
  +
  +    /**
  +     * @see LockStrategy#checkWrite(java.lang.Object, java.lang.Object)
  +     */
  +    public boolean checkWrite(Object key, Object resourceId)
  +    {
  +        LockEntry writer = getWriter(resourceId);
  +        return (writer != null && writer.isOwnedBy(key));
  +    }
  +
  +    /**
  +     * @see LockStrategy#checkRead(java.lang.Object, java.lang.Object)
  +     */
  +    public boolean checkRead(Object key, Object resourceId)
  +    {
  +        if(hasReadLock(key, resourceId))
  +        {
  +            return true;
  +        }
  +        LockEntry writer = getWriter(resourceId);
  +        if(writer != null && writer.isOwnedBy(key))
  +        {
  +            return true;
  +        }
  +        else
  +            return false;
  +    }
  +
  +    /**
  +     * @see LockStrategy#readLock(java.lang.Object, java.lang.Object)
  +     */
  +    public boolean releaseLock(Object key, Object resourceId)
  +    {
  +        LockEntry writer = getWriter(resourceId);
  +        boolean result = false;
  +        if(writer != null && writer.isOwnedBy(key))
  +        {
  +            result = removeWriter(writer);
  +        }
  +        if(removeReader(key, resourceId)) result = true;
  +        return result;
  +    }
   }
  
  
  
  1.4       +10 -79    db-ojb/src/java/org/apache/ojb/broker/locking/ReadCommittedStrategy.java
  
  Index: ReadCommittedStrategy.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/locking/ReadCommittedStrategy.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ReadCommittedStrategy.java	11 Nov 2004 23:39:01 -0000	1.3
  +++ ReadCommittedStrategy.java	6 Dec 2004 11:17:57 -0000	1.4
  @@ -33,6 +33,7 @@
    */
   public class ReadCommittedStrategy extends AbstractLockStrategy
   {
  +    // TODO: concurrent running problems possible
       public static final int ISOLATION_LEVEL = IsolationLevels.IL_READ_COMMITTED;
   
       public ReadCommittedStrategy(LockMap lockMap)
  @@ -59,13 +60,9 @@
                   return readLock(key, resourceId);
               }
           }
  -        if(writer.isOwnedBy(key))
  -        {
  -            return true;    // If I'm the writer, I can read.
  -        }
           else
           {
  -            return false;
  +            return writer.isOwnedBy(key);
           }
       }
   
  @@ -78,19 +75,12 @@
           // if there is no writer yet we can try to get the global write lock
           if(writer == null)
           {
  -            // if lock could be acquired return true
  -            if(setWriter(key, resourceId, ISOLATION_LEVEL))
  -                return true;
  -            // else try again
  -            else
  -                return writeLock(key, resourceId);
  +            return setWriter(key, resourceId, ISOLATION_LEVEL) ? true : writeLock(key,
resourceId);
           }
  -        if(writer.isOwnedBy(key))
  +        else
           {
  -            return true;    // If I'm the writer, then I can write.
  +            return writer.isOwnedBy(key);
           }
  -
  -        return false;
       }
   
       /**
  @@ -101,75 +91,16 @@
           LockEntry writer = getWriter(resourceId);
           if(writer == null)
           {
  -            // if lock could be acquired return true
  -            if(setWriter(key, resourceId, ISOLATION_LEVEL))
  -                return true;
  -            // else try again
  -            else
  -                return upgradeLock(key, resourceId);
  -        }
  -        if(writer.isOwnedBy(key))
  -        {
  -            return true;    // If I already have Write, then I've upgraded.
  -        }
  -
  -        return false;
  -    }
  -
  -    /**
  -     * @see LockStrategy#readLock(java.lang.Object, java.lang.Object)
  -     */
  -    public boolean releaseLock(Object key, Object resourceId)
  -    {
  -        LockEntry writer = getWriter(resourceId);
  -        boolean result = false;
  -//        if(writer != null && writer.isOwnedBy(key))
  -//        {
  -//            removeWriter(writer);
  -//            result = true;
  -//        }
  -//
  -//        if(hasReadLock(key, resourceId))
  -//        {
  -//            result = removeReader(key, resourceId);
  -//            result = true;
  -//        }
  -        if(writer != null && writer.isOwnedBy(key))
  -        {
  -            result = removeWriter(writer);
  +            return setWriter(key, resourceId, ISOLATION_LEVEL) ? true : upgradeLock(key,
resourceId);
           }
  -        if(removeReader(key, resourceId)) result = true;
  -        return result;
  -    }
  -
  -    /**
  -     * @see LockStrategy#checkRead(java.lang.Object, java.lang.Object)
  -     */
  -    public boolean checkRead(Object key, Object resourceId)
  -    {
  -        if(hasReadLock(key, resourceId))
  -        {
  -            return true;
  -        }
  -        LockEntry writer = getWriter(resourceId);
  -        if(writer != null && writer.isOwnedBy(key))
  +        else
           {
  -            return true;
  +            return writer.isOwnedBy(key);
           }
  -        return false;
       }
   
  -    /**
  -     * @see LockStrategy#checkWrite(java.lang.Object, java.lang.Object)
  -     */
  -    public boolean checkWrite(Object key, Object resourceId)
  +    int getIsolationLevel()
       {
  -        LockEntry writer = getWriter(resourceId);
  -        if(writer == null)
  -            return false;
  -        else if(writer.isOwnedBy(key))
  -            return true;
  -        else
  -            return false;
  +        return ISOLATION_LEVEL;
       }
   }
  
  
  
  1.4       +22 -33    db-ojb/src/java/org/apache/ojb/broker/locking/ReadUncommittedStrategy.java
  
  Index: ReadUncommittedStrategy.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/locking/ReadUncommittedStrategy.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ReadUncommittedStrategy.java	11 Nov 2004 23:39:01 -0000	1.3
  +++ ReadUncommittedStrategy.java	6 Dec 2004 11:17:57 -0000	1.4
  @@ -33,6 +33,7 @@
    */
   public class ReadUncommittedStrategy extends AbstractLockStrategy
   {
  +    // TODO: concurrent running problems possible
       public static final int ISOLATION_LEVEL = IsolationLevels.IL_READ_UNCOMMITTED;
   
       public ReadUncommittedStrategy(LockMap lockMap)
  @@ -49,57 +50,49 @@
       }
   
       /**
  -     * @see LockStrategy#writeLock(java.lang.Object, java.lang.Object)
  +     * Release read lock is always successful (because they will be ignored),
  +     * remove write lock behave normal (true if write lock is owned by caller/key).
        */
  -    public boolean writeLock(Object key, Object resourceId)
  +    public boolean releaseLock(Object key, Object resourceId)
       {
           LockEntry writer = getWriter(resourceId);
  -        if(writer == null)
  -        {
  -            if(setWriter(key, resourceId, ISOLATION_LEVEL))
  -                return true;
  -            else
  -                return writeLock(key, resourceId);
  -        }
  -        if(writer.isOwnedBy(key))
  +        if(writer != null && writer.isOwnedBy(key))
           {
  -            return true;    // If I'm the writer, then I can write.
  +            return removeWriter(writer);
           }
  -        return false;
  +        return true;
       }
   
       /**
  -     * @see LockStrategy#upgradeLock(java.lang.Object, java.lang.Object)
  +     * @see LockStrategy#writeLock(java.lang.Object, java.lang.Object)
        */
  -    public boolean upgradeLock(Object key, Object resourceId)
  +    public boolean writeLock(Object key, Object resourceId)
       {
           LockEntry writer = getWriter(resourceId);
           if(writer == null)
           {
  -            if(setWriter(key, resourceId, ISOLATION_LEVEL))
  -                return true;
  -            else
  -                return upgradeLock(key, resourceId);
  +            return setWriter(key, resourceId, ISOLATION_LEVEL) ? true : writeLock(key,
resourceId);
           }
  -        if(writer.isOwnedBy(key))
  +        else
           {
  -            return true;    // If I already have Write, then I've upgraded.
  +            return writer.isOwnedBy(key);
           }
  -        return false;
       }
   
       /**
  -     * @see LockStrategy#readLock(java.lang.Object, java.lang.Object)
  +     * @see LockStrategy#upgradeLock(java.lang.Object, java.lang.Object)
        */
  -    public boolean releaseLock(Object key, Object resourceId)
  +    public boolean upgradeLock(Object key, Object resourceId)
       {
           LockEntry writer = getWriter(resourceId);
  -        if(writer != null && writer.isOwnedBy(key))
  +        if(writer == null)
           {
  -            removeWriter(writer);
  +            return setWriter(key, resourceId, ISOLATION_LEVEL) ? true : upgradeLock(key,
resourceId);
  +        }
  +        else
  +        {
  +            return writer.isOwnedBy(key);
           }
  -        // readlocks cannot (and need not) be released, thus:
  -        return true;
       }
   
       /**
  @@ -110,12 +103,8 @@
           return checkWrite(key, resourceId);
       }
   
  -    /**
  -     * @see LockStrategy#checkWrite(java.lang.Object, java.lang.Object)
  -     */
  -    public boolean checkWrite(Object key, Object resourceId)
  +    int getIsolationLevel()
       {
  -        LockEntry writer = getWriter(resourceId);
  -        return (writer != null && writer.isOwnedBy(key));
  +        return ISOLATION_LEVEL;
       }
   }
  
  
  
  1.4       +19 -82    db-ojb/src/java/org/apache/ojb/broker/locking/RepeatableReadStrategy.java
  
  Index: RepeatableReadStrategy.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/locking/RepeatableReadStrategy.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- RepeatableReadStrategy.java	11 Nov 2004 23:39:01 -0000	1.3
  +++ RepeatableReadStrategy.java	6 Dec 2004 11:17:57 -0000	1.4
  @@ -31,6 +31,7 @@
    */
   public class RepeatableReadStrategy extends AbstractLockStrategy
   {
  +    // TODO: concurrent running problems possible
       public static final int ISOLATION_LEVEL = IsolationLevels.IL_REPEATABLE_READ;
   
       public RepeatableReadStrategy(LockMap lockMap)
  @@ -46,18 +47,12 @@
           LockEntry writer = getWriter(resourceId);
           if(writer == null)
           {
  -            if(addReader(key, resourceId, ISOLATION_LEVEL))
  -                return true;
  -            else
  -                return readLock(key, resourceId);
  +            return addReader(key, resourceId, ISOLATION_LEVEL) ? true : readLock(key, resourceId);
           }
  -        if(writer.isOwnedBy(key))
  +        else
           {
  -            return true;    // If I'm the writer, I can read.
  +            return writer.isOwnedBy(key);
           }
  -        else
  -            return false;
  -
       }
   
       /**
  @@ -66,28 +61,26 @@
       public boolean writeLock(Object key, Object resourceId)
       {
           LockEntry writer = getWriter(resourceId);
  -        Collection readers = getReaders(resourceId);
           if(writer == null)
           {
  +            Collection readers = getReaders(resourceId);
               if(readers.size() == 0)
               {
  -                if(setWriter(key, resourceId, ISOLATION_LEVEL))
  -                    return true;
  -                else
  -                    return writeLock(key, resourceId);
  +                return setWriter(key, resourceId, ISOLATION_LEVEL) ? true : writeLock(key,
resourceId);
               }
  -
               else if(readers.size() == 1)
               {
  -                if(((LockEntry) readers.iterator().next()).isOwnedBy(key))
  -                    return upgradeLock(key, resourceId);
  +                return ((LockEntry) readers.iterator().next()).isOwnedBy(key) ? upgradeLock(key,
resourceId) : false;
  +            }
  +            else
  +            {
  +                return false;
               }
           }
  -        else if(writer.isOwnedBy(key))
  +        else
           {
  -            return true;    // If I'm the writer, then I can write.
  +            return writer.isOwnedBy(key);
           }
  -        return false;
       }
   
   
  @@ -105,79 +98,23 @@
                   LockEntry reader = (LockEntry) readers.iterator().next();
                   if(reader.isOwnedBy(key))
                   {
  -                    if(upgradeLock(reader))
  -                        return true;
  -                    else
  -                        return upgradeLock(key, resourceId);
  +                    return upgradeLock(reader) ? true : upgradeLock(key, resourceId);
                   }
               }
               else if(readers.size() == 0)
               {
  -                if(setWriter(key, resourceId, ISOLATION_LEVEL))
  -                    return true;
  -                else
  -                    return upgradeLock(key, resourceId);
  +                return setWriter(key, resourceId, ISOLATION_LEVEL) ? true : upgradeLock(key,
resourceId);
               }
  -
  -
           }
  -        else if(writer.isOwnedBy(key))
  +        else
           {
  -            return true;    // If I already have Write, then I've upgraded.
  +            return writer.isOwnedBy(key);
           }
  -
           return false;
       }
   
  -    /**
  -     * @see LockStrategy#readLock(java.lang.Object, java.lang.Object)
  -     */
  -    public boolean releaseLock(Object key, Object resourceId)
  +    int getIsolationLevel()
       {
  -        LockEntry writer = getWriter(resourceId);
  -        boolean result = false;
  -//        if(writer != null && writer.isOwnedBy(key))
  -//        {
  -//            removeWriter(writer);
  -//            result = true;
  -//        }
  -//        if(hasReadLock(key, resourceId))
  -//        {
  -//            removeReader(key, resourceId);
  -//            result = true;
  -//        }
  -        if(writer != null && writer.isOwnedBy(key))
  -        {
  -            result = removeWriter(writer);
  -        }
  -        if(removeReader(key, resourceId)) result = true;
  -        return result;
  -    }
  -
  -    /**
  -     * @see LockStrategy#checkRead(java.lang.Object, java.lang.Object)
  -     */
  -    public boolean checkRead(Object key, Object resourceId)
  -    {
  -        if(hasReadLock(key, resourceId))
  -        {
  -            return true;
  -        }
  -        LockEntry writer = getWriter(resourceId);
  -        if(writer != null && writer.isOwnedBy(key))
  -        {
  -            return true;
  -        }
  -        else
  -            return false;
  -    }
  -
  -    /**
  -     * @see LockStrategy#checkWrite(java.lang.Object, java.lang.Object)
  -     */
  -    public boolean checkWrite(Object key, Object resourceId)
  -    {
  -        LockEntry writer = getWriter(resourceId);
  -        return (writer != null && writer.isOwnedBy(key));
  +        return ISOLATION_LEVEL;
       }
   }
  
  
  
  1.4       +22 -83    db-ojb/src/java/org/apache/ojb/broker/locking/SerializableStrategy.java
  
  Index: SerializableStrategy.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/locking/SerializableStrategy.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SerializableStrategy.java	11 Nov 2004 23:39:01 -0000	1.3
  +++ SerializableStrategy.java	6 Dec 2004 11:17:57 -0000	1.4
  @@ -27,6 +27,7 @@
    */
   public class SerializableStrategy extends AbstractLockStrategy
   {
  +    // TODO: concurrent running problems possible
       public static final int ISOLATION_LEVEL = IsolationLevels.IL_SERIALIZABLE;
   
       public SerializableStrategy(LockMap lockMap)
  @@ -40,9 +41,9 @@
       public boolean readLock(Object key, Object resourceId)
       {
           LockEntry writer = getWriter(resourceId);
  -        Collection readers = getReaders(resourceId);
           if(writer == null)
           {
  +            Collection readers = getReaders(resourceId);
               // only one reader at a time
               if(readers.size() == 0)
               {
  @@ -62,18 +63,16 @@
                   else
                       return readLock(key, resourceId);
               }
  -            else if((readers.size() == 1) && (((LockEntry) readers.iterator().next()).isOwnedBy(key)))
  +            else
               {
                   // I'm the reader, thus I am allowed to read even more !
  -                return true;
  +                return (readers.size() == 1) && (((LockEntry) readers.iterator().next()).isOwnedBy(key));
               }
           }
  -        else if(writer.isOwnedBy(key))
  +        else
           {
  -            return true;    // If I'm the writer, I can read.
  +            return writer.isOwnedBy(key);
           }
  -
  -        return false;
       }
   
       /**
  @@ -87,23 +86,21 @@
           {
               if(readers.size() == 0)
               {
  -                if(setWriter(key, resourceId, ISOLATION_LEVEL))
  -                    return true;
  -                else
  -                    return writeLock(key, resourceId);
  +                return setWriter(key, resourceId, ISOLATION_LEVEL) ? true : writeLock(key,
resourceId);
               }
  -
               else if(readers.size() == 1)
               {
  -                if(((LockEntry) readers.iterator().next()).isOwnedBy(key))
  -                    return upgradeLock(key, resourceId);
  +                return ((LockEntry) readers.iterator().next()).isOwnedBy(key) ? upgradeLock(key,
resourceId) : false;
  +            }
  +            else
  +            {
  +                return false;
               }
           }
  -        else if(writer.isOwnedBy(key))
  +        else
           {
  -            return true;    // If I'm the writer, then I can write.
  +            return writer.isOwnedBy(key);
           }
  -        return false;
       }
   
       /**
  @@ -114,87 +111,29 @@
           LockEntry writer = getWriter(resourceId);
           if(writer == null)
           {
  -            Collection readers = getReaders(resourceId);
  +            Collection readers = this.getReaders(resourceId);
               if(readers.size() == 1)
               {
                   LockEntry reader = (LockEntry) readers.iterator().next();
                   if(reader.isOwnedBy(key))
                   {
  -                    if(upgradeLock(reader))
  -                        return true;
  -                    else
  -                        return upgradeLock(key, resourceId);
  +                    return upgradeLock(reader) ? true : upgradeLock(key, resourceId);
                   }
               }
  -            else
  +            else if(readers.size() == 0)
               {
  -                if(readers.size() == 0)
  -                {
  -                    if(setWriter(key, resourceId, ISOLATION_LEVEL))
  -                        return true;
  -                    else
  -                        return upgradeLock(key, resourceId);
  -                }
  +                return setWriter(key, resourceId, ISOLATION_LEVEL) ? true : upgradeLock(key,
resourceId);
               }
           }
  -        else if(writer.isOwnedBy(key))
  +        else
           {
  -            return true;    // If I already have Write, then I've upgraded.
  +            return writer.isOwnedBy(key);
           }
  -
           return false;
       }
   
  -    /**
  -     * @see LockStrategy#readLock(java.lang.Object, java.lang.Object)
  -     */
  -    public boolean releaseLock(Object key, Object resourceId)
  -    {
  -        LockEntry writer = getWriter(resourceId);
  -        boolean result = false;
  -//        if(writer != null && writer.isOwnedBy(key))
  -//        {
  -//            removeWriter(writer);
  -//            result = true;
  -//        }
  -//
  -//        if(hasReadLock(key, resourceId))
  -//        {
  -//            removeReader(key, resourceId);
  -//            result = true;
  -//        }
  -        if(writer != null && writer.isOwnedBy(key))
  -        {
  -            result = removeWriter(writer);
  -        }
  -        if(removeReader(key, resourceId)) result = true;
  -        return result;
  -    }
  -
  -    /**
  -     * @see LockStrategy#checkRead(java.lang.Object, java.lang.Object)
  -     */
  -    public boolean checkRead(Object key, Object resourceId)
  +    int getIsolationLevel()
       {
  -        if(hasReadLock(key, resourceId))
  -        {
  -            return true;
  -        }
  -        LockEntry writer = getWriter(resourceId);
  -        if(writer != null && writer.isOwnedBy(key))
  -        {
  -            return true;
  -        }
  -        else
  -            return false;
  -    }
  -
  -    /**
  -     * @see LockStrategy#checkWrite(java.lang.Object, java.lang.Object)
  -     */
  -    public boolean checkWrite(Object key, Object resourceId)
  -    {
  -        LockEntry writer = getWriter(resourceId);
  -        return (writer != null && writer.isOwnedBy(key));
  +        return ISOLATION_LEVEL;
       }
   }
  
  
  
  1.2       +260 -0    db-ojb/src/test/org/apache/ojb/broker/locking/LockTestCommitedReads.java
  
  
  
  
  1.2       +258 -0    db-ojb/src/test/org/apache/ojb/broker/locking/LockTestRepeatableReads.java
  
  
  
  
  1.2       +257 -0    db-ojb/src/test/org/apache/ojb/broker/locking/LockTestSerializable.java
  
  
  
  
  1.2       +257 -0    db-ojb/src/test/org/apache/ojb/broker/locking/LockTestUncommitedReads.java
  
  
  
  
  1.58      +8 -0      db-ojb/src/test/org/apache/ojb/broker/AllTests.java
  
  Index: AllTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/AllTests.java,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- AllTests.java	25 Nov 2004 20:30:23 -0000	1.57
  +++ AllTests.java	6 Dec 2004 11:17:57 -0000	1.58
  @@ -20,6 +20,10 @@
   import org.apache.ojb.broker.sequence.NativeIdentifierTest;
   import org.apache.ojb.broker.sequence.SMMultiThreadedTest;
   import org.apache.ojb.broker.sequence.SequenceManagerTest;
  +import org.apache.ojb.broker.locking.LockTestUncommitedReads;
  +import org.apache.ojb.broker.locking.LockTestCommitedReads;
  +import org.apache.ojb.broker.locking.LockTestRepeatableReads;
  +import org.apache.ojb.broker.locking.LockTestSerializable;
   
   /**
    * the facade to all TestCases in this package.
  @@ -106,6 +110,10 @@
           suite.addTestSuite(PersistentFieldTest.class);
           suite.addTestSuite(MultithreadedReadTest.class);
           suite.addTestSuite(MetadataMultithreadedTest.class);
  +        suite.addTestSuite(LockTestSerializable.class);
  +        suite.addTestSuite(LockTestRepeatableReads.class);
  +        suite.addTestSuite(LockTestCommitedReads.class);
  +        suite.addTestSuite(LockTestUncommitedReads.class);
           suite.addTestSuite(FactoryTest.class);
           suite.addTestSuite(PicoComponentContainerTest.class);
           suite.addTestSuite(SpringComponentContainerTest.class);
  
  
  
  1.20      +0 -4      db-ojb/src/test/org/apache/ojb/odmg/AllTests.java
  
  Index: AllTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/odmg/AllTests.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- AllTests.java	14 Sep 2004 16:50:02 -0000	1.19
  +++ AllTests.java	6 Dec 2004 11:17:57 -0000	1.20
  @@ -28,10 +28,6 @@
           suite.addTestSuite(DMapTest.class);
           suite.addTestSuite(LockingTest.class);
           suite.addTestSuite(LockingMultithreadedTest.class);
  -        suite.addTestSuite(LockTestSerializable.class);
  -        suite.addTestSuite(LockTestRepeatableReads.class);
  -        suite.addTestSuite(LockTestCommitedReads.class);
  -        suite.addTestSuite(LockTestUncommitedReads.class);
           suite.addTestSuite(ProxyTest.class);
           suite.addTestSuite(RITest.class);
   		suite.addTestSuite(ScrollableQueryResultsTest.class);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message