[seam-commits] Seam SVN: r8005 - trunk/src/test/unit/org/jboss/seam/test/unit.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue Apr 22 21:51:30 EDT 2008
Author: shane.bryzak at jboss.com
Date: 2008-04-22 21:51:30 -0400 (Tue, 22 Apr 2008)
New Revision: 8005
Modified:
trunk/src/test/unit/org/jboss/seam/test/unit/PasswordHashTest.java
Log:
fix PasswordHashTest
Modified: trunk/src/test/unit/org/jboss/seam/test/unit/PasswordHashTest.java
===================================================================
--- trunk/src/test/unit/org/jboss/seam/test/unit/PasswordHashTest.java 2008-04-22 09:09:05 UTC (rev 8004)
+++ trunk/src/test/unit/org/jboss/seam/test/unit/PasswordHashTest.java 2008-04-23 01:51:30 UTC (rev 8005)
@@ -8,14 +8,16 @@
@Test
public void testMd5Hash()
{
- String hash = PasswordHash.instance().generateHash("secret", "MD5");
+ PasswordHash passwordHash = new PasswordHash();
+ String hash = passwordHash.generateHash("secret", "MD5");
assert hash.equals("Xr4ilOzQ4PCOq3aQ0qbuaQ==");
}
@Test
public void testShaHash()
{
- String hash = PasswordHash.instance().generateHash("secret", "SHA");
+ PasswordHash passwordHash = new PasswordHash();
+ String hash = passwordHash.generateHash("secret", "SHA");
assert hash.equals("5en6G6MezRroT3XKqkdPOmY/BfQ=");
}
}
More information about the seam-commits
mailing list