directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1606440 - /directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/
Date Sun, 29 Jun 2014 07:45:37 GMT
Author: elecharny
Date: Sun Jun 29 07:45:37 2014
New Revision: 1606440

URL: http://svn.apache.org/r1606440
Log:
Fixed some compilation errors

Modified:
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/InMemoryBulkDataSorterTest.java
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeBrowseTest.java
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeDuplicateKeyTest.java
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeTransactionTest.java
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedSubBtreeKeyCursorTest.java
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerTest.java
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerWithDuplicatesTest.java

Modified: directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/InMemoryBulkDataSorterTest.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/InMemoryBulkDataSorterTest.java?rev=1606440&r1=1606439&r2=1606440&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/InMemoryBulkDataSorterTest.java
(original)
+++ directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/InMemoryBulkDataSorterTest.java
Sun Jun 29 07:45:37 2014
@@ -49,6 +49,9 @@ public class InMemoryBulkDataSorterTest
 {
     @Rule
     public TemporaryFolder tempFolder = new TemporaryFolder();
+    
+    /* A counter of tuple files */
+    private int counter = 0;
 
     private Comparator<Tuple<Integer, Integer>> tupleComp = new Comparator<Tuple<Integer,
Integer>>()
     {
@@ -69,6 +72,7 @@ public class InMemoryBulkDataSorterTest
         Random random = new Random();
 
         File dataFile = tempFolder.newFile( "tuple.data" );
+        dataFile.deleteOnExit();
         DataOutputStream out = new DataOutputStream( new FileOutputStream( dataFile ) );
 
         Tuple<Integer, Integer>[] arr = ( Tuple<Integer, Integer>[] ) Array.newInstance(
Tuple.class, count );
@@ -107,12 +111,14 @@ public class InMemoryBulkDataSorterTest
     }
 
 
-    public void testSortedFileMerge( int count, int splitAfter ) throws IOException
+    private void testSortedFileMerge( int count, int splitAfter ) throws IOException
     {
         IntTupleReaderWriter itrw = new IntTupleReaderWriter();
         Random random = new Random();
 
-        File dataFile = tempFolder.newFile( "tuple.data" );
+        File dataFile = tempFolder.newFile( "tuple.data" + counter );
+        counter++;
+        dataFile.deleteOnExit();
 
         DataOutputStream out = new DataOutputStream( new FileOutputStream( dataFile ) );
 

Modified: directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeBrowseTest.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeBrowseTest.java?rev=1606440&r1=1606439&r2=1606440&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeBrowseTest.java
(original)
+++ directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeBrowseTest.java
Sun Jun 29 07:45:37 2014
@@ -66,7 +66,7 @@ public class PersistedBTreeBrowseTest
      * Create a BTree for this test
      */
     @Before
-    public void createBTree()
+    public void createBTree() throws IOException
     {
         dataDir = tempFolder.newFolder( UUID.randomUUID().toString() );
 

Modified: directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeDuplicateKeyTest.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeDuplicateKeyTest.java?rev=1606440&r1=1606439&r2=1606440&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeDuplicateKeyTest.java
(original)
+++ directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeDuplicateKeyTest.java
Sun Jun 29 07:45:37 2014
@@ -64,7 +64,7 @@ public class PersistedBTreeDuplicateKeyT
 
 
     @Before
-    public void createBTree()
+    public void createBTree() throws IOException
     {
         dataDir = tempFolder.newFolder( UUID.randomUUID().toString() );
 

Modified: directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeTransactionTest.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeTransactionTest.java?rev=1606440&r1=1606439&r2=1606440&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeTransactionTest.java
(original)
+++ directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeTransactionTest.java
Sun Jun 29 07:45:37 2014
@@ -53,7 +53,7 @@ public class PersistedBTreeTransactionTe
 
 
     @Before
-    public void createBTree()
+    public void createBTree() throws IOException
     {
         dataDirWithTxn = tempFolder.newFolder( UUID.randomUUID().toString() );
         dataDirNoTxn = tempFolder.newFolder( UUID.randomUUID().toString() );

Modified: directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedSubBtreeKeyCursorTest.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedSubBtreeKeyCursorTest.java?rev=1606440&r1=1606439&r2=1606440&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedSubBtreeKeyCursorTest.java
(original)
+++ directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedSubBtreeKeyCursorTest.java
Sun Jun 29 07:45:37 2014
@@ -53,7 +53,7 @@ public class PersistedSubBtreeKeyCursorT
 
 
     @Before
-    public void createBTree()
+    public void createBTree() throws IOException
     {
         dataDir = tempFolder.newFolder( UUID.randomUUID().toString() );
 

Modified: directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerTest.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerTest.java?rev=1606440&r1=1606439&r2=1606440&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerTest.java
(original)
+++ directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerTest.java
Sun Jun 29 07:45:37 2014
@@ -65,7 +65,7 @@ public class RecordManagerTest
 
 
     @Before
-    public void createBTree()
+    public void createBTree() throws IOException
     {
         dataDir = tempFolder.newFolder( UUID.randomUUID().toString() );
 

Modified: directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerWithDuplicatesTest.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerWithDuplicatesTest.java?rev=1606440&r1=1606439&r2=1606440&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerWithDuplicatesTest.java
(original)
+++ directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/RecordManagerWithDuplicatesTest.java
Sun Jun 29 07:45:37 2014
@@ -59,7 +59,7 @@ public class RecordManagerWithDuplicates
 
 
     @Before
-    public void createBTree()
+    public void createBTree() throws IOException
     {
         dataDir = tempFolder.newFolder( UUID.randomUUID().toString() );
 



Mime
View raw message