directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r494259 - /directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/
Date Mon, 08 Jan 2007 23:45:36 GMT
Author: elecharny
Date: Mon Jan  8 15:45:35 2007
New Revision: 494259

URL: http://svn.apache.org/viewvc?view=rev&rev=494259
Log:
Fix DIRSERVER-764 : the temporary files weren't destroyed at the end of the test. Added a
tearDown method

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

Modified: directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeEnumerationTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeEnumerationTest.java?view=diff&rev=494259&r1=494258&r2=494259
==============================================================================
--- directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeEnumerationTest.java
(original)
+++ directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeEnumerationTest.java
Mon Jan  8 15:45:35 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/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeIteratorTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeIteratorTest.java?view=diff&rev=494259&r1=494258&r2=494259
==============================================================================
--- directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeIteratorTest.java
(original)
+++ directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeIteratorTest.java
Mon Jan  8 15:45:35 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/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeTupleEnumerationTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeTupleEnumerationTest.java?view=diff&rev=494259&r1=494258&r2=494259
==============================================================================
--- directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeTupleEnumerationTest.java
(original)
+++ directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/BTreeTupleEnumerationTest.java
Mon Jan  8 15:45:35 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/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsBTreeTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsBTreeTest.java?view=diff&rev=494259&r1=494258&r2=494259
==============================================================================
--- directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsBTreeTest.java
(original)
+++ directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsBTreeTest.java
Mon Jan  8 15:45:35 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/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsTreeSetTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsTreeSetTest.java?view=diff&rev=494259&r1=494258&r2=494259
==============================================================================
--- directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsTreeSetTest.java
(original)
+++ directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableDupsTreeSetTest.java
Mon Jan  8 15:45:35 2007
@@ -120,6 +120,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();
+    }
+
 
     /**
      * Tests the has() methods for correct behavoir:

Modified: directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDupsTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDupsTest.java?view=diff&rev=494259&r1=494258&r2=494259
==============================================================================
--- directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDupsTest.java
(original)
+++ directory/trunks/apacheds/core/src/test/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTableNoDupsTest.java
Mon Jan  8 15:45:35 2007
@@ -90,6 +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
     {



Mime
View raw message