directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r494412 - /directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/
Date Tue, 09 Jan 2007 13:55:41 GMT
Author: elecharny
Date: Tue Jan  9 05:55:41 2007
New Revision: 494412

URL: http://svn.apache.org/viewvc?view=rev&rev=494412
Log:
Fix DIRSERVER-764

Modified:
    directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeEnumerationTest.java
    directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeIteratorTest.java
    directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeTupleEnumerationTest.java
    directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsBTreeTest.java
    directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsTreeSetTest.java
    directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDupsTest.java

Modified: directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeEnumerationTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeEnumerationTest.java?view=diff&rev=494412&r1=494411&r2=494412
==============================================================================
--- directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeEnumerationTest.java
(original)
+++ directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeEnumerationTest.java
Tue Jan  9 05:55:41 2007
@@ -56,6 +56,13 @@
         tree = BTree.createInstance( rm, new BigIntegerComparator() );
     }
     
+    protected void tearDown() throws Exception
+    {
+        String tmp = tempFile.getAbsolutePath();
+        new File( tmp ).delete();
+        new File( tmp + ".db" ).delete();
+        new File( tmp + ".lg" ).delete();
+    }
 
     public void testEmptyBTree() throws NamingException
     {

Modified: directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeIteratorTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeIteratorTest.java?view=diff&rev=494412&r1=494411&r2=494412
==============================================================================
--- directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeIteratorTest.java
(original)
+++ directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeIteratorTest.java
Tue Jan  9 05:55:41 2007
@@ -56,6 +56,13 @@
         tree = BTree.createInstance( rm, new BigIntegerComparator() );
     }
     
+    protected void tearDown() throws Exception
+    {
+        String tmp = tempFile.getAbsolutePath();
+        new File( tmp ).delete();
+        new File( tmp + ".db" ).delete();
+        new File( tmp + ".lg" ).delete();
+    }
 
     public void testEmptyBTree() throws NamingException
     {

Modified: directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeTupleEnumerationTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeTupleEnumerationTest.java?view=diff&rev=494412&r1=494411&r2=494412
==============================================================================
--- directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeTupleEnumerationTest.java
(original)
+++ directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeTupleEnumerationTest.java
Tue Jan  9 05:55:41 2007
@@ -57,6 +57,13 @@
         tree = BTree.createInstance( rm, new BigIntegerComparator() );
     }
     
+    protected void tearDown() throws Exception
+    {
+        String tmp = tempFile.getAbsolutePath();
+        new File( tmp ).delete();
+        new File( tmp + ".db" ).delete();
+        new File( tmp + ".lg" ).delete();
+    }
 
     public void testEmptyBTree() throws NamingException
     {

Modified: directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsBTreeTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsBTreeTest.java?view=diff&rev=494412&r1=494411&r2=494412
==============================================================================
--- directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsBTreeTest.java
(original)
+++ directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsBTreeTest.java
Tue Jan  9 05:55:41 2007
@@ -120,6 +120,13 @@
         table.put( new BigInteger( "5" ), BigInteger.ONE );
     }
 
+    protected void tearDown() throws Exception
+    {
+        String tmp = tempFile.getAbsolutePath();
+        new File( tmp ).delete();
+        new File( tmp + ".db" ).delete();
+        new File( tmp + ".lg" ).delete();
+    }
 
     /**
      * Tests the has() methods for correct behavoir:

Modified: directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsTreeSetTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsTreeSetTest.java?view=diff&rev=494412&r1=494411&r2=494412
==============================================================================
--- directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsTreeSetTest.java
(original)
+++ directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsTreeSetTest.java
Tue Jan  9 05:55:41 2007
@@ -120,6 +120,13 @@
         table.put( new BigInteger( "5" ), BigInteger.ONE );
     }
 
+    protected void tearDown() throws Exception
+    {
+        String tmp = tempFile.getAbsolutePath();
+        new File( tmp ).delete();
+        new File( tmp + ".db" ).delete();
+        new File( tmp + ".lg" ).delete();
+    }
 
     /**
      * Tests the has() methods for correct behavoir:

Modified: directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDupsTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDupsTest.java?view=diff&rev=494412&r1=494411&r2=494412
==============================================================================
--- directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDupsTest.java
(original)
+++ directory/branches/apacheds/1.0/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDupsTest.java
Tue Jan  9 05:55:41 2007
@@ -90,7 +90,14 @@
         table.put( new BigInteger( "5" ), BigInteger.ONE );
     }
 
-    
+    protected void tearDown() throws Exception
+    {
+        String tmp = tempFile.getAbsolutePath();
+        new File( tmp ).delete();
+        new File( tmp + ".db" ).delete();
+        new File( tmp + ".lg" ).delete();
+    }
+
     public void testCatchAll() throws Exception
     {
         assertFalse( table.isDupsEnabled() );



Mime
View raw message