You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2022/08/23 04:28:05 UTC
[directory-server] branch master updated: Fixed some checkstyle violation
This is an automated email from the ASF dual-hosted git repository.
elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-server.git
The following commit(s) were added to refs/heads/master by this push:
new dbed3e1e64 Fixed some checkstyle violation
dbed3e1e64 is described below
commit dbed3e1e64a1fa43cee99bbf21c019cba647babf
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Tue Aug 23 06:27:55 2022 +0200
Fixed some checkstyle violation
---
.../directory/server/core/operations/modify/ModifyPasswordIT.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/core-integ/src/test/java/org/apache/directory/server/core/operations/modify/ModifyPasswordIT.java b/core-integ/src/test/java/org/apache/directory/server/core/operations/modify/ModifyPasswordIT.java
index a60760adf4..364416200f 100644
--- a/core-integ/src/test/java/org/apache/directory/server/core/operations/modify/ModifyPasswordIT.java
+++ b/core-integ/src/test/java/org/apache/directory/server/core/operations/modify/ModifyPasswordIT.java
@@ -31,6 +31,7 @@ import org.apache.directory.api.ldap.model.exception.LdapException;
import org.apache.directory.api.ldap.model.message.ModifyRequest;
import org.apache.directory.api.ldap.model.message.ModifyRequestImpl;
import org.apache.directory.api.ldap.model.name.Dn;
+import org.apache.directory.api.util.Strings;
import org.apache.directory.ldap.client.api.LdapConnection;
import org.apache.directory.server.core.annotations.CreateDS;
import org.apache.directory.server.core.integ.AbstractLdapTestUnit;
@@ -52,7 +53,7 @@ public class ModifyPasswordIT extends AbstractLdapTestUnit
{
Entry admin = connection.lookup( dn );
assertEquals( 1, admin.get( "userPassword" ).size() );
- assertEquals( password, new String( admin.get( "userPassword" ).getBytes() ) );
+ assertEquals( password, Strings.utf8ToString( admin.get( "userPassword" ).getBytes() ) );
}
@@ -61,7 +62,7 @@ public class ModifyPasswordIT extends AbstractLdapTestUnit
Entry admin = connection.lookup( dn );
Attribute userPassword = admin.get( "userPassword" );
assertEquals( 2, userPassword.size() );
- assertTrue( userPassword.contains( passwords[0].getBytes(), passwords[1].getBytes() ) );
+ assertTrue( userPassword.contains( Strings.getBytesUtf8( passwords[0] ), Strings.getBytesUtf8( passwords[1] ) ) );
}