diff --git a/dspace-api/src/test/java/org/dspace/eperson/EPersonTest.java b/dspace-api/src/test/java/org/dspace/eperson/EPersonTest.java index 0531c90192..c95b042aa2 100644 --- a/dspace-api/src/test/java/org/dspace/eperson/EPersonTest.java +++ b/dspace-api/src/test/java/org/dspace/eperson/EPersonTest.java @@ -1,3 +1,10 @@ +/** + * The contents of this file are subject to the license and copyright + * detailed in the LICENSE and NOTICE files at the root of the source + * tree and available online at + * + * http://www.dspace.org/license/ + */ package org.dspace.eperson; @@ -697,6 +704,8 @@ public class EPersonTest assertEquals("should have upgraded algorithm", PasswordHash.getDefaultAlgorithm(), instance.getPasswordHash().getAlgorithm()); + assertTrue("upgraded hash should still match", + instance.checkPassword(attempt)); // TODO test a salted multiround hash }