accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject git commit: ACCUMULO-1565 fixed deprecation warning in test
Date Wed, 31 Jul 2013 15:44:02 GMT
Updated Branches:
  refs/heads/master 14f8a80a8 -> 0b85105a4


ACCUMULO-1565 fixed deprecation warning in test


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/0b85105a
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/0b85105a
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/0b85105a

Branch: refs/heads/master
Commit: 0b85105a46de675fd207bd120562e8391dce8b5a
Parents: 14f8a80
Author: Christopher Tubbs <ctubbsii@apache.org>
Authored: Wed Jul 31 11:43:41 2013 -0400
Committer: Christopher Tubbs <ctubbsii@apache.org>
Committed: Wed Jul 31 11:43:41 2013 -0400

----------------------------------------------------------------------
 .../apache/accumulo/test/functional/CloneTestIT.java    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/0b85105a/test/src/test/java/org/apache/accumulo/test/functional/CloneTestIT.java
----------------------------------------------------------------------
diff --git a/test/src/test/java/org/apache/accumulo/test/functional/CloneTestIT.java b/test/src/test/java/org/apache/accumulo/test/functional/CloneTestIT.java
index 01a32b1..1cd2980 100644
--- a/test/src/test/java/org/apache/accumulo/test/functional/CloneTestIT.java
+++ b/test/src/test/java/org/apache/accumulo/test/functional/CloneTestIT.java
@@ -22,7 +22,6 @@ import java.util.Map;
 import java.util.Map.Entry;
 import java.util.Set;
 
-import org.apache.accumulo.core.Constants;
 import org.apache.accumulo.core.client.BatchWriter;
 import org.apache.accumulo.core.client.BatchWriterConfig;
 import org.apache.accumulo.core.client.Connector;
@@ -31,6 +30,7 @@ import org.apache.accumulo.core.conf.Property;
 import org.apache.accumulo.core.data.Key;
 import org.apache.accumulo.core.data.Mutation;
 import org.apache.accumulo.core.data.Value;
+import org.apache.accumulo.core.security.Authorizations;
 import org.junit.Assert;
 import org.junit.Test;
 
@@ -38,7 +38,7 @@ import org.junit.Test;
  * 
  */
 public class CloneTestIT extends SimpleMacIT {
-
+  
   @Test(timeout = 120 * 1000)
   public void run() throws Exception {
     String table1 = makeTableName();
@@ -80,8 +80,8 @@ public class CloneTestIT extends SimpleMacIT {
     m3.put("data", "y", "2");
     bw.addMutation(m3);
     bw.close();
-
-    Scanner scanner = c.createScanner(table2, Constants.NO_AUTHS);
+    
+    Scanner scanner = c.createScanner(table2, Authorizations.EMPTY);
     
     HashMap<String,String> expected = new HashMap<String,String>();
     expected.put("001:x", "9");
@@ -100,13 +100,13 @@ public class CloneTestIT extends SimpleMacIT {
     for (Entry<String,String> prop : c.tableOperations().getProperties(table2)) {
       tableProps.put(prop.getKey(), prop.getValue());
     }
-
+    
     Assert.assertEquals("500K", tableProps.get(Property.TABLE_FILE_COMPRESSED_BLOCK_SIZE.getKey()));
     Assert.assertEquals(Property.TABLE_FILE_MAX.getDefaultValue(), tableProps.get(Property.TABLE_FILE_MAX.getKey()));
     Assert.assertEquals("2M", tableProps.get(Property.TABLE_FILE_COMPRESSED_BLOCK_SIZE_INDEX.getKey()));
     
     c.tableOperations().delete(table1);
     c.tableOperations().delete(table2);
-
+    
   }
 }


Mime
View raw message