accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [2/4] accumulo git commit: ACCUMULO-3812 Replace ByteBuffer.toString() calls.
Date Sat, 06 Jun 2015 17:19:10 GMT
ACCUMULO-3812 Replace ByteBuffer.toString() calls.


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

Branch: refs/heads/master
Commit: def9a199167af5979d2f91d6b7fdc37f1784efea
Parents: f629d32
Author: Josh Elser <elserj@apache.org>
Authored: Sat Jun 6 13:15:17 2015 -0400
Committer: Josh Elser <elserj@apache.org>
Committed: Sat Jun 6 13:15:17 2015 -0400

----------------------------------------------------------------------
 .../test/java/org/apache/accumulo/proxy/SimpleProxyBase.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/def9a199/test/src/test/java/org/apache/accumulo/proxy/SimpleProxyBase.java
----------------------------------------------------------------------
diff --git a/test/src/test/java/org/apache/accumulo/proxy/SimpleProxyBase.java b/test/src/test/java/org/apache/accumulo/proxy/SimpleProxyBase.java
index 86051f6..b2811d4 100644
--- a/test/src/test/java/org/apache/accumulo/proxy/SimpleProxyBase.java
+++ b/test/src/test/java/org/apache/accumulo/proxy/SimpleProxyBase.java
@@ -1182,7 +1182,7 @@ public abstract class SimpleProxyBase extends SharedMiniClusterIT {
     if (!isKerberosEnabled()) {
       password = s2bb("");
       client.changeLocalUserPassword(creds, user, password);
-      assertTrue(client.authenticateUser(creds, user, s2pp(password.toString())));
+      assertTrue(client.authenticateUser(creds, user, s2pp(new String(password.array(), password.position(),
password.limit()))));
     }
 
     if (isKerberosEnabled()) {
@@ -1201,7 +1201,7 @@ public abstract class SimpleProxyBase extends SharedMiniClusterIT {
       }
     } else {
       // check login with new password
-      client.login(user, s2pp(password.toString()));
+      client.login(user, s2pp(new String(password.array(), password.position(), password.limit())));
     }
   }
 
@@ -1236,7 +1236,7 @@ public abstract class SimpleProxyBase extends SharedMiniClusterIT {
       userName = getUniqueNames(1)[0];
       // create a user
       client.createLocalUser(creds, userName, password);
-      user = client.login(userName, s2pp(password.toString()));
+      user = client.login(userName, s2pp(new String(password.array(), password.position(),
password.limit())));
     }
 
     // check permission failure


Mime
View raw message