Skip to content

Commit

Permalink
Fix ldap password test
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Sep 23, 2014
1 parent f70bd53 commit 338b36a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Server/src/test/java/org/xdi/oxauth/ws/rs/KeyGenerationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.testng.annotations.Test;
import org.xdi.oxauth.BaseTest;
import org.xdi.oxauth.service.EncryptionService;
import org.xdi.util.security.StringEncrypter;

/**
* @author Javier Rojas Blum Date: 05.30.2012
Expand All @@ -20,9 +19,14 @@ public class KeyGenerationTest extends BaseTest {
@Parameters({"ldapAdminPassword"})
@Test
public void encryptLdapPassword(final String ldapAdminPassword) throws Exception {
showTitle("TEST: encryptLdapPassword");
new ComponentTest() {
@Override
protected void testComponents() throws Exception {
showTitle("TEST: encryptLdapPassword");

String password = EncryptionService.instance().encrypt(ldapAdminPassword);
System.out.println("Encrypted LDAP Password: " + password);
String password = EncryptionService.instance().encrypt(ldapAdminPassword);
System.out.println("Encrypted LDAP Password: " + password);
}
}.run();
}
}

0 comments on commit 338b36a

Please sign in to comment.